summaryrefslogtreecommitdiff
path: root/spec/ruby/core/builtin_constants
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-04-22 22:00:33 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-04-22 22:00:48 +0900
commit4cd67a848a0648c20b1cab9d2dfe1bf7d7d90be0 (patch)
tree8c3ee0872134892a2ec7ec085ace20c4a5f1edd2 /spec/ruby/core/builtin_constants
parent87261cf59f4914801512cf0f3f1332f0c94b6952 (diff)
Fix RUBY_REVISION spec
broken by 5da52d1210625fb00acd573b3f32281b4bde1730
Diffstat (limited to 'spec/ruby/core/builtin_constants')
-rw-r--r--spec/ruby/core/builtin_constants/builtin_constants_spec.rb12
1 files changed, 10 insertions, 2 deletions
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