From 88f570d9ae5984decc313f10b54d259ff54fa525 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 1 Oct 2007 22:02:23 +0000 Subject: * proc.c (proc_dup): proc->block.proc should be self. * bootstraptest/test_knownbug.rb, test_method.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_method.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'bootstraptest/test_method.rb') diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index 56bb1146ac..54ba5f8442 100644 --- a/bootstraptest/test_method.rb +++ b/bootstraptest/test_method.rb @@ -986,3 +986,18 @@ assert_normal_exit %q{ end }, '[ruby-dev:31818]' +assert_equal 'ok', %q{ + class Module + def define_method2(name, &block) + define_method(name, &block) + end + end + class C + define_method2(:m) {|x, y| :fail } + end + begin + C.new.m([1,2]) + rescue ArgumentError + :ok + end +} -- cgit v1.2.3