ruby-changes:32302
From: nobu <ko1@a...>
Date: Tue, 24 Dec 2013 18:19:16 +0900 (JST)
Subject: [ruby-changes:32302] nobu:r44381 (trunk): test_method.rb: fix test
nobu 2013-12-24 18:19:11 +0900 (Tue, 24 Dec 2013) New Revision: 44381 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44381 Log: test_method.rb: fix test * test/ruby/test_method.rb (test_define_method_in_private_scope): remove extra *, to get the argument itself. Modified files: trunk/test/ruby/test_method.rb Index: test/ruby/test_method.rb =================================================================== --- test/ruby/test_method.rb (revision 44380) +++ test/ruby/test_method.rb (revision 44381) @@ -344,7 +344,7 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L344 class << c public :define_method end - TOPLEVEL_BINDING.eval("proc{|c|c.define_method(:x) {|*x|throw x}}").call(c) + TOPLEVEL_BINDING.eval("proc{|c|c.define_method(:x) {|x|throw x}}").call(c) o = c.new assert_throw(bug9005) {o.x(bug9005)} end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/