diff options
Diffstat (limited to 'spec/ruby/core/array/hash_spec.rb')
| -rw-r--r-- | spec/ruby/core/array/hash_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/array/hash_spec.rb b/spec/ruby/core/array/hash_spec.rb index 638acff12b..f3bcc83fce 100644 --- a/spec/ruby/core/array/hash_spec.rb +++ b/spec/ruby/core/array/hash_spec.rb @@ -7,16 +7,16 @@ describe "Array#hash" do [[], [1, 2, 3]].each do |ary| ary.hash.should == ary.dup.hash - ary.hash.should be_an_instance_of(Fixnum) + ary.hash.should be_an_instance_of(Integer) end end it "properly handles recursive arrays" do empty = ArraySpecs.empty_recursive_array - lambda { empty.hash }.should_not raise_error + -> { empty.hash }.should_not raise_error array = ArraySpecs.recursive_array - lambda { array.hash }.should_not raise_error + -> { array.hash }.should_not raise_error end it "returns the same hash for equal recursive arrays" do |
