* test/ruby/test_module.rb (test_classpath): r53376 may change

the order of m.constants.
  `make TESTS='-v ruby/test_class.rb ruby/test_module.rb' test-all`
  may fail after that.
  20151230T164202Z.log.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2015-12-30 17:47:43 +00:00
parent 6bdfd21d29
commit 5da0e86396
2 changed files with 9 additions and 1 deletions

View file

@ -534,7 +534,7 @@ class TestModule < Test::Unit::TestCase
m.module_eval("module O end")
assert_equal([:N, :O], m.constants)
m.module_eval("class C; end")
assert_equal([:N, :O, :C], m.constants)
assert_equal([:C, :N, :O], m.constants.sort)
assert_nil(m::N.name)
assert_match(/\A#<Module:.*>::O\z/, m::O.name)
assert_match(/\A#<Module:.*>::C\z/, m::C.name)