1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-01-04 07:47:44 +00:00
parent bae170f34b
commit 014d60ce98

View file

@ -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