From 7211354a565892ae77bfdac90142a596f3661ca7 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 Oct 2009 12:19:19 +0000 Subject: * vm_method.c (rb_add_method_def): no redefinition warning on undef. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_module.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/ruby/test_module.rb') diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index c50cd38b7..59c965325 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -845,5 +845,13 @@ class TestModule < Test::Unit::TestCase end end assert_equal("", stderr, '[ruby-dev:39397]') + + stderr = EnvUtil.verbose_warning do + Module.new do + def foo; end + undef foo + end + end + assert_equal("", stderr) end end -- cgit