test_module.rb: rename

* test/ruby/test_module.rb (test_visibility_by_public_class_method):
  rename because anonymousness is not a point.
  [ruby-core:54404] [Bug #8284]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-04-19 08:09:42 +00:00
parent 0e102a6658
commit 3c1b8a1b68

View File

@ -1721,7 +1721,7 @@ class TestModule < Test::Unit::TestCase
assert_equal [mod, obj.singleton_class, Object], obj.singleton_class.ancestors.first(3)
end
def test_anonymous_module_public_class_method
def test_visibility_by_public_class_method
bug8284 = '[ruby-core:54404] [Bug #8284]'
assert_raise(NoMethodError) {Object.define_method}
Module.new.public_class_method(:define_method)