Skip to content

Commit bc17794

Browse files
herwinweregon
authored andcommitted
Ruby 4.0: Add specs for constants in new Ruby toplevel module
1 parent fa98492 commit bc17794

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

core/builtin_constants/builtin_constants_spec.rb

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,61 @@
8585
RUBY_REVISION.should.frozen?
8686
end
8787
end
88+
89+
ruby_version_is "4.0" do
90+
context "The RUBY toplevel constant" do
91+
describe "Ruby::VERSION" do
92+
it "is equal to RUBY_VERSION" do
93+
Ruby::VERSION.should equal(RUBY_VERSION)
94+
end
95+
end
96+
97+
describe "RUBY::PATCHLEVEL" do
98+
it "is equal to RUBY_PATCHLEVEL" do
99+
Ruby::PATCHLEVEL.should equal(RUBY_PATCHLEVEL)
100+
end
101+
end
102+
103+
describe "Ruby::COPYRIGHT" do
104+
it "is equal to RUBY_COPYRIGHT" do
105+
Ruby::COPYRIGHT.should equal(RUBY_COPYRIGHT)
106+
end
107+
end
108+
109+
describe "Ruby::DESCRIPTION" do
110+
it "is equal to RUBY_DESCRIPTION" do
111+
Ruby::DESCRIPTION.should equal(RUBY_DESCRIPTION)
112+
end
113+
end
114+
115+
describe "Ruby::ENGINE" do
116+
it "is equal to RUBY_ENGINE" do
117+
Ruby::ENGINE.should equal(RUBY_ENGINE)
118+
end
119+
end
120+
121+
describe "Ruby::ENGINE_VERSION" do
122+
it "is equal to RUBY_ENGINE_VERSION" do
123+
Ruby::ENGINE_VERSION.should equal(RUBY_ENGINE_VERSION)
124+
end
125+
end
126+
127+
describe "Ruby::PLATFORM" do
128+
it "is equal to RUBY_PLATFORM" do
129+
Ruby::PLATFORM.should equal(RUBY_PLATFORM)
130+
end
131+
end
132+
133+
describe "Ruby::RELEASE_DATE" do
134+
it "is equal to RUBY_RELEASE_DATE" do
135+
Ruby::RELEASE_DATE.should equal(RUBY_RELEASE_DATE)
136+
end
137+
end
138+
139+
describe "Ruby::REVISION" do
140+
it "is equal to RUBY_REVISION" do
141+
Ruby::REVISION.should equal(RUBY_REVISION)
142+
end
143+
end
144+
end
145+
end

0 commit comments

Comments
 (0)