diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-13 14:03:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-13 14:03:48 +0000 |
commit | 5bff643540d8a32bed918c29a86d400cd47ec11d (patch) | |
tree | e37645134fef63eb6ed3afef91102c9b25e28290 /test/ruby/test_weakmap.rb | |
parent | b71956d12b061613f8ef9dfe3f8a75e56dfa799d (diff) | |
download | ruby-5bff643540d8a32bed918c29a86d400cd47ec11d.tar.gz |
test_weakmap.rb: fix test
* test/ruby/test_weakmap.rb (test_include?): Object.new does not
excute the block, use tap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_weakmap.rb')
-rw-r--r-- | test/ruby/test_weakmap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_weakmap.rb b/test/ruby/test_weakmap.rb index bc88ab0dd0..d63d82f9de 100644 --- a/test/ruby/test_weakmap.rb +++ b/test/ruby/test_weakmap.rb @@ -31,7 +31,7 @@ class TestWeakMap < Test::Unit::TestCase def test_include? m = __callee__[/test_(.*)/, 1] k = "foo" - Object.new do |x| + Object.new.tap do |x| @wm[k] = x assert_send([@wm, m, k]) assert_not_send([@wm, m, "FOO".downcase]) |