diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-05 03:18:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-05 03:18:25 +0000 |
commit | 55148a250101b662fde32919f14afcf2dcdc801d (patch) | |
tree | fc5c632f160f695dabc3579a58b4fb188fd7e190 /test/ruby/test_proc.rb | |
parent | 2205687ccf6caf2d7b9998478751508afba707c6 (diff) |
* vm_eval.c (check_funcall): try respond_to? first if redefined.
[Bug #5158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r-- | test/ruby/test_proc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index efd5a269fd..3cac94a100 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -787,7 +787,7 @@ class TestProc < Test::Unit::TestCase end def test_splat_without_respond_to - def (obj = Object.new).respond_to?(m); false end + def (obj = Object.new).respond_to?(m,*); false end [obj].each do |a, b| assert_equal([obj, nil], [a, b], '[ruby-core:24139]') end |