From 4cd67a848a0648c20b1cab9d2dfe1bf7d7d90be0 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 22 Apr 2019 22:00:33 +0900 Subject: Fix RUBY_REVISION spec broken by 5da52d1210625fb00acd573b3f32281b4bde1730 --- spec/ruby/core/builtin_constants/builtin_constants_spec.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'spec/ruby/core') diff --git a/spec/ruby/core/builtin_constants/builtin_constants_spec.rb b/spec/ruby/core/builtin_constants/builtin_constants_spec.rb index 0840291994..84c113b8fe 100644 --- a/spec/ruby/core/builtin_constants/builtin_constants_spec.rb +++ b/spec/ruby/core/builtin_constants/builtin_constants_spec.rb @@ -43,7 +43,15 @@ describe "RUBY_RELEASE_DATE" do end describe "RUBY_REVISION" do - it "is a Fixnum" do - RUBY_REVISION.should be_kind_of(Fixnum) + ruby_version_is "".."2.6" do + it "is an Integer" do + RUBY_REVISION.should be_kind_of(Fixnum) + end + end + + ruby_version_is "2.7" do + it "is a String" do + RUBY_REVISION.should be_kind_of(String) + end end end -- cgit v1.2.3