diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-03 23:25:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-03 23:25:19 +0000 |
commit | b942e7891a4ac1a74f1ed45612b21aee617bc163 (patch) | |
tree | 993acb518b5a540a95738489914e3af0ab2930e1 /test | |
parent | b95ce36ed4a7c99a57da056e7f7a193abd6024cb (diff) | |
download | ruby-b942e7891a4ac1a74f1ed45612b21aee617bc163.tar.gz |
* vm_insnhelper.c (vm_call_method): revert r30064 and r30071,
because of [ruby-core:26761]. Bug#4106 rejected.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_method.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index e5177d6217..da17ef5e9c 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -411,25 +411,4 @@ class TestMethod < Test::Unit::TestCase assert_nothing_raised { v.instance_eval { mv2 } } assert_nothing_raised { v.instance_eval { mv3 } } end - - def test_protected_singleton - bug4106 = '[ruby-core:33506]' - a = Class.new do - def meth - :called - end - def test - a = dup - a.extend(Module.new) - a.extend(Module.new) - class << a - protected :meth - end - a.meth - end - end.new - called = nil - assert_nothing_raised(NoMethodError, bug4106) {called = a.test} - assert_equal(:called, called, bug4106) - end end |