aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_module.rb2
-rw-r--r--test/ruby/test_struct.rb2
-rw-r--r--test/ruby/test_thread.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 0a11be46e3..d1c5d53822 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -455,7 +455,7 @@ class TestModule < Test::Unit::TestCase
end
def test_instance_methods
- assert_equal([:user, :user2], User.instance_methods(false))
+ assert_equal([:user, :user2], User.instance_methods(false).sort)
assert_equal([:user, :user2, :mixin].sort, User.instance_methods(true).sort)
assert_equal([:mixin], Mixin.instance_methods)
assert_equal([:mixin], Mixin.instance_methods(true))
diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb
index 9047e81bbe..573f65d0b9 100644
--- a/test/ruby/test_struct.rb
+++ b/test/ruby/test_struct.rb
@@ -147,7 +147,7 @@ module TestStruct
assert_equal("#<struct :@a=3>", o.inspect)
methods = klass.instance_methods(false)
- assert_equal([:@a, :"@a="].inspect, methods.inspect, '[Bug #8756]')
+ assert_equal([:@a, :"@a="].sort.inspect, methods.sort.inspect, '[Bug #8756]')
assert_include(methods, :@a)
assert_include(methods, :"@a=")
end
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index f60df8392e..9daff2d866 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -476,7 +476,7 @@ class TestThread < Test::Unit::TestCase
assert_equal(false, t.key?(:qux))
assert_equal(false, t.key?("qux"))
- assert_equal([:foo, :bar, :baz], t.keys)
+ assert_equal([:foo, :bar, :baz].sort, t.keys.sort)
ensure
t.kill if t