ruby-changes:24531
From: nobu <ko1@a...>
Date: Tue, 31 Jul 2012 09:46:12 +0900 (JST)
Subject: [ruby-changes:24531] nobu:r36582 (trunk): * test/ruby/test_module.rb (TestModule#test_classpath): fix
nobu 2012-07-31 09:45:57 +0900 (Tue, 31 Jul 2012) New Revision: 36582 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36582 Log: * test/ruby/test_module.rb (TestModule#test_classpath): fix typos. Modified files: trunk/test/ruby/test_module.rb Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 36581) +++ test/ruby/test_module.rb (revision 36582) @@ -372,11 +372,11 @@ 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/