From 47b8a0e7e4a04a28e57c3f9bb712a1f88d9e27bb Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 14 Feb 2010 03:09:53 +0000 Subject: avoid method redefinition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_proc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_proc.rb') diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 213566903e..f6fd5c8ea0 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -620,7 +620,7 @@ class TestProc < Test::Unit::TestCase assert_equal [1, 2, 3, 4, 5, 6, Proc, :x], (pr.call(1, 2, 3, 4, 5, 6, 7){|x| x}) end - def test_proc_args_opt_and_block + def test_proc_args_opt_and_block2 pr = proc {|a,b,c=:c,d=:d,*e,&f| [a, b, c, d, e, f.class, f&&f.call(:x)] } -- cgit v1.2.3