From eafeb506cd0f53be1fc4360fe7f493ef3714705a Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 13 May 2017 13:54:52 +0000 Subject: [PATCH] remove wrong expectation * spec/rubyspec/core/kernel/itself_spec.rb: `object_id` may return different objects for each calls, and the expectation of object identity is done by `equal` matcher which uses `equal?` method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/rubyspec/core/kernel/itself_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/rubyspec/core/kernel/itself_spec.rb b/spec/rubyspec/core/kernel/itself_spec.rb index 285080ec3b..722d75d718 100644 --- a/spec/rubyspec/core/kernel/itself_spec.rb +++ b/spec/rubyspec/core/kernel/itself_spec.rb @@ -5,6 +5,5 @@ describe "Kernel#itself" do it "returns the receiver itself" do foo = Object.new foo.itself.should equal foo - foo.itself.object_id.should equal foo.object_id end end