aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_eval.rb
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 06:03:37 +0000
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 06:03:37 +0000
commit53f3ddfefb4131c20baa7589d022f7ffb0859c6b (patch)
treef4e64d65cfe9490991c713bbe13a27ace84c4b10 /test/ruby/test_eval.rb
parent9c8f03fac927d153f314be4259c5b7fc9b7fedc9 (diff)
downloadruby-53f3ddfefb4131c20baa7589d022f7ffb0859c6b.tar.gz
* test/ruby/test_eval.rb (class TestEval): Use assert_same instead of
assert_equal. * test/ruby/test_hash.rb (class TestHash): ditto. * test/ruby/test_iseq.rb (class TestISeq): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_eval.rb')
-rw-r--r--test/ruby/test_eval.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb
index abf65613b1..2700aa33f3 100644
--- a/test/ruby/test_eval.rb
+++ b/test/ruby/test_eval.rb
@@ -482,7 +482,6 @@ class TestEval < Test::Unit::TestCase
a, b = o.method(:foo).source_location[0],
o.method(:bar).source_location[0]
- assert_equal a.object_id, b.object_id,
- "#{a.inspect}.object_id != #{b.inspect}.object_id"
+ assert_same a, b
end
end