mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
b71956d12b
commit
5bff643540
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue