summaryrefslogtreecommitdiff
path: root/test/ruby/test_method.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-24 09:19:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-24 09:19:11 +0000
commit8365138720e387c8f0f1a60712a7cd2b6219f8ff (patch)
tree3957f2327a59c0a8b8bc9a546cab7caebb3f02c1 /test/ruby/test_method.rb
parent1fc33199736f316dd71d0c551edbf514528ddde6 (diff)
downloadruby-8365138720e387c8f0f1a60712a7cd2b6219f8ff.tar.gz
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/trunk@44381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_method.rb')
-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