From 6f395a58d2a1f2e5fdfaf2933ee2e80d10abfd30 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Sat, 5 Jan 2019 20:41:09 +0900 Subject: Add `assert_same` and `assert_not_same` --- test/t/proc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/t/proc.rb') 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 -- cgit v1.2.3