aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-03 12:19:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-03 12:19:19 +0000
commit9603cd2f627013d50a40419e2283752346a15c99 (patch)
tree24a1181ea6e641e9b59e8cb320cec66649a54c84 /test/ruby/test_module.rb
parent74926fefb7de9ade12ef1dbc4994efe981aaa55a (diff)
downloadruby-9603cd2f627013d50a40419e2283752346a15c99.tar.gz
* vm_method.c (rb_add_method_def): no redefinition warning on
undef. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index c50cd38b79..59c965325f 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