aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--test/ruby/test_eval.rb3
-rw-r--r--test/ruby/test_hash.rb2
-rw-r--r--test/ruby/test_iseq.rb6
4 files changed, 11 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 5127a6236e..5964d548b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Nov 27 15:02:53 2013 Aman Gupta <ruby@tmm1.net>
+
+ * 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.
+
Wed Nov 27 14:50:02 2013 Eric Hodel <drbrain@segment7.net>
* lib/rinda/ring.rb: Announce RingServer for the same process.
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
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 49b74c7257..cfb61b6480 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -212,7 +212,7 @@ class TestHash < Test::Unit::TestCase
def test_ASET_string
a = {"ABC" => :t}
b = {"ABC" => :t}
- assert_equal a.keys[0].object_id, b.keys[0].object_id
+ assert_same a.keys[0], b.keys[0]
end
def test_EQUAL # '=='
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb
index fdc223b751..0a5d9ca822 100644
--- a/test/ruby/test_iseq.rb
+++ b/test/ruby/test_iseq.rb
@@ -121,9 +121,7 @@ class TestISeq < Test::Unit::TestCase
c = Class.new{ def foobar() end }
a, b = eval("# encoding: us-ascii\n'foobar'.freeze"),
- ISeq.of(c.instance_method(:foobar)).label
-
- assert_equal a.object_id, b.object_id,
- "#{a.inspect}.object_id != #{b.inspect}.object_id"
+ ISeq.of(c.instance_method(:foobar)).label
+ assert_same a, b
end
end