ruby-changes:46588
From: nobu <ko1@a...>
Date: Sat, 13 May 2017 22:54:58 +0900 (JST)
Subject: [ruby-changes:46588] nobu:r58704 (trunk): remove wrong expectation
nobu 2017-05-13 22:54:52 +0900 (Sat, 13 May 2017) New Revision: 58704 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58704 Log: 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. Modified files: trunk/spec/rubyspec/core/kernel/itself_spec.rb Index: spec/rubyspec/core/kernel/itself_spec.rb =================================================================== --- spec/rubyspec/core/kernel/itself_spec.rb (revision 58703) +++ spec/rubyspec/core/kernel/itself_spec.rb (revision 58704) @@ -5,6 +5,5 @@ describe "Kernel#itself" do https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/core/kernel/itself_spec.rb#L5 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/