summaryrefslogtreecommitdiffhomepage
path: root/test/t/proc.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-01-05 20:41:09 +0900
committerKOBAYASHI Shuji <[email protected]>2019-01-05 20:41:09 +0900
commit6f395a58d2a1f2e5fdfaf2933ee2e80d10abfd30 (patch)
tree5c28b675ae7b596ecc6322029b6203afdac8c1d3 /test/t/proc.rb
parentd45a6d8363ef0d21aa43cae32edb8b3b90a0e20d (diff)
downloadmruby-6f395a58d2a1f2e5fdfaf2933ee2e80d10abfd30.tar.gz
mruby-6f395a58d2a1f2e5fdfaf2933ee2e80d10abfd30.zip
Add `assert_same` and `assert_not_same`
Diffstat (limited to 'test/t/proc.rb')
-rw-r--r--test/t/proc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/t/proc.rb b/test/t/proc.rb
index 42ac3b941..b17b21e8c 100644
--- a/test/t/proc.rb
+++ b/test/t/proc.rb
@@ -157,7 +157,7 @@ assert('&obj call to_proc if defined') do
def mock(&b)
b
end
- assert_equal pr.object_id, mock(&pr).object_id
+ assert_same pr, mock(&pr)
assert_equal pr, mock(&pr)
obj = Object.new