mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1fc3319973
commit
8365138720
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue