diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-31 00:45:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-31 00:45:57 +0000 |
commit | c7c4e87a409d401724be69de97c950e95409a97b (patch) | |
tree | 2038f715a773cd9fce7f0745e22dbd4dddb26b62 /test | |
parent | d604ac3f1d4c39ae11dde11d697335ababcfd01d (diff) | |
download | ruby-c7c4e87a409d401724be69de97c950e95409a97b.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_module.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index fc594ec128..43e80a5955 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -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) |