aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 64ea4f7488..5c07f7a382 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -532,7 +532,7 @@ class TestModule < Test::Unit::TestCase
assert_nil(n.name)
assert_equal([:N], m.constants)
m.module_eval("module O end")
- assert_equal([:N, :O], m.constants)
+ assert_equal([:N, :O], m.constants.sort)
m.module_eval("class C; end")
assert_equal([:C, :N, :O], m.constants.sort)
assert_nil(m::N.name)