mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 20:44:00 +02:00
* 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
This commit is contained in:
parent
ea0bc53ec3
commit
86bafab212
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue