mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@226cfdc
This commit is contained in:
parent
8abfc10605
commit
4053e8ba0d
42 changed files with 470 additions and 84 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue