Fix RUBY_REVISION spec

broken by 5da52d1210625fb00acd573b3f32281b4bde1730
This commit is contained in:
Takashi Kokubun 2019-04-22 22:00:33 +09:00
parent 87261cf59f
commit 4cd67a848a
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD

View File

@ -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