diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-04 07:47:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-04 07:47:44 +0000 |
commit | 0a46676313fb2eb555e8face7d0aeba7df8c0e42 (patch) | |
tree | ee7fcca6c1657d281e7959776d26c8e28dc73d31 /test | |
parent | f3b95aa32419efb30cc73d981c52b1ab153e5161 (diff) | |
download | ruby-0a46676313fb2eb555e8face7d0aeba7df8c0e42.tar.gz |
test_ostruct.rb: sort method names
* test/ostruct/test_ostruct.rb (test_accessor_defines_method):
should not depend on the order of methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ostruct/test_ostruct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb index 8b9b647720..aeccc9209a 100644 --- a/test/ostruct/test_ostruct.rb +++ b/test/ostruct/test_ostruct.rb @@ -171,7 +171,7 @@ class TC_OpenStruct < Test::Unit::TestCase assert os.respond_to? :foo assert_equal([], os.singleton_methods) assert_equal(42, os.foo) - assert_equal([:foo, :foo=], os.singleton_methods) + assert_equal([:foo, :foo=], os.singleton_methods.sort) end def test_does_not_redefine |