summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-31 00:45:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-31 00:45:57 +0000
commitc7c4e87a409d401724be69de97c950e95409a97b (patch)
tree2038f715a773cd9fce7f0745e22dbd4dddb26b62 /test/ruby
parentd604ac3f1d4c39ae11dde11d697335ababcfd01d (diff)
* 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/ruby')
-rw-r--r--test/ruby/test_module.rb4
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)