diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-01 22:02:23 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-01 22:02:23 +0000 |
commit | 8890ac219acf9f7d82a983a3beb22feef11a8252 (patch) | |
tree | 53d550973a26f98ae429eef5d5db3a95a6727f70 /bootstraptest/test_method.rb | |
parent | ed4f2c0744489f2be58f75f912dcd4fa6b8cb0ca (diff) | |
download | ruby-8890ac219acf9f7d82a983a3beb22feef11a8252.tar.gz ruby-8890ac219acf9f7d82a983a3beb22feef11a8252.tar.xz ruby-8890ac219acf9f7d82a983a3beb22feef11a8252.zip |
* proc.c (proc_dup): proc->block.proc should be self.
* bootstraptest/test_knownbug.rb, test_method.rb:
move a fixed test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_method.rb')
-rw-r--r-- | bootstraptest/test_method.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index 56bb1146a..54ba5f844 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 +} |