mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_module.rb (TestModule#test_classpath): fix
typos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d604ac3f1d
commit
c7c4e87a40
1 changed files with 2 additions and 2 deletions
|
@ -372,11 +372,11 @@ class TestModule < Test::Unit::TestCase
|
|||
assert_equal([:N], m.constants)
|
||||
m.module_eval("module O end")
|
||||
assert_equal([:N, :O], m.constants)
|
||||
m.module_eval("class C end")
|
||||
m.module_eval("class C; end")
|
||||
assert_equal([:N, :O, :C], m.constants)
|
||||
assert_nil(m::N.name)
|
||||
assert_match(/\A#<Module:.*>::O\z/, m::O.name)
|
||||
assert_match(/\A#<Class:.*>::O\z/, m::C.name)
|
||||
assert_match(/\A#<Module:.*>::C\z/, m::C.name)
|
||||
self.class.const_set(:M, m)
|
||||
prefix = self.class.name + "::M::"
|
||||
assert_equal(prefix+"N", m.const_get(:N).name)
|
||||
|
|
Loading…
Reference in a new issue