Skip to content

Commit fa98492

Browse files
herwinweregon
authored andcommitted
Add spec for existence of RUBY_ENGINE_VERSION
This one is available in all supported Ruby releases.
1 parent caa4e5c commit fa98492

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

core/builtin_constants/builtin_constants_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@
4646
end
4747
end
4848

49+
describe "RUBY_ENGINE_VERSION" do
50+
it "is a String" do
51+
RUBY_ENGINE_VERSION.should be_kind_of(String)
52+
end
53+
54+
it "is frozen" do
55+
RUBY_ENGINE_VERSION.should.frozen?
56+
end
57+
end
58+
4959
describe "RUBY_PLATFORM" do
5060
it "is a String" do
5161
RUBY_PLATFORM.should be_kind_of(String)

0 commit comments

Comments
 (0)