aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_method.rb21
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