summaryrefslogtreecommitdiff
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-05 16:10:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-05 16:10:41 +0000
commit84cfe8f8d669c3b8bdadc8a819d6482b890c5e24 (patch)
tree73da44bac8dbdd6622c58173e840bba0fd640bbc /test/ruby/test_object.rb
parentcfc2103108bdc8c5b9ad2bc859bfd2699c921131 (diff)
vm_eval.c: public_send does not consider how it is called
* vm_eval.c (rb_method_call_status): use Qundef as no self instead of the current self. * vm_eval.c (send_internal): public_send does not consider how it is called, as mentioned in r14173. patched by charliesome (Charlie Somerville). [ruby-core:50489] [Bug #7499] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r--test/ruby/test_object.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index 6b679b5201..9f0e9bc5b2 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -587,6 +587,8 @@ class TestObject < Test::Unit::TestCase
assert_raise(NoMethodError) {c.public_send(:priv)}
assert_raise(NoMethodError) {c.public_send(:prot)}
assert_raise(NoMethodError) {c.invoke(:priv)}
+ bug7499 = '[ruby-core:50489]'
+ assert_raise(NoMethodError, bug7499) {c.invoke(:prot)}
end
def test_no_superclass_method