diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 5b7c76da4d..1652c91d4f 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -344,7 +344,7 @@ class TestMethod < Test::Unit::TestCase 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