ruby-changes:32097
From: nobu <ko1@a...>
Date: Fri, 13 Dec 2013 23:03:53 +0900 (JST)
Subject: [ruby-changes:32097] nobu:r44176 (trunk): test_weakmap.rb: fix test
nobu 2013-12-13 23:03:48 +0900 (Fri, 13 Dec 2013) New Revision: 44176 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44176 Log: test_weakmap.rb: fix test * test/ruby/test_weakmap.rb (test_include?): Object.new does not excute the block, use tap. Modified files: trunk/test/ruby/test_weakmap.rb Index: test/ruby/test_weakmap.rb =================================================================== --- test/ruby/test_weakmap.rb (revision 44175) +++ test/ruby/test_weakmap.rb (revision 44176) @@ -31,7 +31,7 @@ class TestWeakMap < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_weakmap.rb#L31 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]) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/