1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2022-01-10 16:29:54 +01:00
parent 8abfc10605
commit 4053e8ba0d
42 changed files with 470 additions and 84 deletions

View file

@ -1,7 +1,7 @@
require_relative '../../spec_helper'
ruby_version_is ""..."3.1" do
describe "Fixnum" do
describe "Fixnum" do
ruby_version_is ""..."3.2" do
it "is unified into Integer" do
suppress_warning do
Fixnum.should equal(Integer)
@ -13,7 +13,15 @@ ruby_version_is ""..."3.1" do
end
end
describe "Bignum" do
ruby_version_is "3.2" do
it "is no longer defined" do
Object.should_not.const_defined?(:Fixnum)
end
end
end
describe "Bignum" do
ruby_version_is ""..."3.2" do
it "is unified into Integer" do
suppress_warning do
Bignum.should equal(Integer)
@ -24,4 +32,10 @@ ruby_version_is ""..."3.1" do
-> { Bignum }.should complain(/constant ::Bignum is deprecated/)
end
end
ruby_version_is "3.2" do
it "is no longer defined" do
Object.should_not.const_defined?(:Bignum)
end
end
end