aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/hash/compare_by_identity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/hash/compare_by_identity_spec.rb')
-rw-r--r--spec/ruby/core/hash/compare_by_identity_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/hash/compare_by_identity_spec.rb b/spec/ruby/core/hash/compare_by_identity_spec.rb
index 34541037b9..6e6f294e10 100644
--- a/spec/ruby/core/hash/compare_by_identity_spec.rb
+++ b/spec/ruby/core/hash/compare_by_identity_spec.rb
@@ -105,7 +105,7 @@ describe "Hash#compare_by_identity" do
@idh[foo] = true
@idh[foo] = true
@idh.size.should == 1
- @idh.keys.first.object_id.should == foo.object_id
+ @idh.keys.first.should equal foo
end
ruby_bug "#12855", "2.2.0"..."2.4.1" do