From 9050b61dcbee9bbd5ad9e494de65cd4cd3103af8 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 28 Jul 2009 10:41:11 +0000 Subject: * proc.c (rb_method_entry_arity): support optimized method (send). * test/ruby/test_method.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index dc44eee274..c60f7fa8a8 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -51,6 +51,10 @@ class TestMethod < Test::Unit::TestCase assert_equal(-3, method(:mo6).arity) end + def test_arity_special + assert_equal(-1, method(:__send__).arity) + end + def test_unbind assert_equal(:derived, Derived.new.foo) um = Derived.new.method(:foo).unbind -- cgit v1.2.3