aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-02 17:32:50 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-02 17:32:50 +0000
commit86bafab212c2d73f02386a5e8440f9a72a86ae31 (patch)
treefe78f43b1ef6c937582969d90515a3f91bce8241 /test/ruby/test_module.rb
parentea0bc53ec3a968d86eb64507ce51577c7f7bceec (diff)
downloadruby-86bafab212c2d73f02386a5e8440f9a72a86ae31.tar.gz
* test/ruby/test_module.rb: Do not assume class variable order.
Path by @enebo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-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 8bfdf8db35..bdf699536d 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1768,8 +1768,8 @@ class TestModule < Test::Unit::TestCase
m2.send(:include, m)
m2.class_variable_set(:@@bar, 2)
assert_equal([:@@foo], m.class_variables)
- assert_equal([:@@bar, :@@foo], m2.class_variables)
- assert_equal([:@@bar, :@@foo], m2.class_variables(true))
+ assert_equal([:@@bar, :@@foo], m2.class_variables.sort)
+ assert_equal([:@@bar, :@@foo], m2.class_variables(true).sort)
assert_equal([:@@bar], m2.class_variables(false))
end