mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use Integer instead of Fixnum/Bignum
This commit is contained in:
parent
fb8f011422
commit
9c73c75624
144 changed files with 392 additions and 390 deletions
|
@ -14,7 +14,7 @@ describe "A singleton class" do
|
|||
nil.singleton_class.should == NilClass
|
||||
end
|
||||
|
||||
it "raises a TypeError for Fixnum's" do
|
||||
it "raises a TypeError for Integer's" do
|
||||
-> { 1.singleton_class }.should raise_error(TypeError)
|
||||
end
|
||||
|
||||
|
@ -74,7 +74,7 @@ describe "A singleton class" do
|
|||
end
|
||||
|
||||
it "doesn't have singleton class" do
|
||||
-> { bignum_value.singleton_class.superclass.should == Bignum }.should raise_error(TypeError)
|
||||
-> { bignum_value.singleton_class.superclass.should == Integer }.should raise_error(TypeError)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue