summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-25 11:31:01 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-25 11:31:01 +0000
commit6ee55bed73f3af71ed72b6ba75cf6e9bc9655f1b (patch)
treeb70eb218fe3fc75346b2998c4f576f5e38e056f7
parent18f605a29278d63207f10660fc2808438211f7d4 (diff)
merge revision(s) 44381: [Backport #9296]
test_method.rb: fix test * test/ruby/test_method.rb (test_define_method_in_private_scope): remove extra *, to get the argument itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_method.rb2
1 files changed, 1 insertions, 1 deletions
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