aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index b86efd7005..dbbeca850d 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1280,20 +1280,6 @@ class TestModule < Test::Unit::TestCase
undef foo
end
end
-
- stderr = EnvUtil.verbose_warning do
- Module.new do
- def foo; end
- mod = self
- c = Class.new do
- include mod
- end
- c.new.foo
- def foo; end
- end
- end
- assert_match(/: warning: method redefined; discarding old foo/, stderr)
- assert_match(/: warning: previous definition of foo/, stderr)
end
def test_protected_singleton_method