mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Jun 3 02:29:25 2015 Benoit Daloze <eregontp@gmail.com>
|
||||||
|
|
||||||
|
* test/ruby/test_module.rb: Do not assume class variable order.
|
||||||
|
Path by @enebo.
|
||||||
|
|
||||||
Wed Jun 3 01:10:38 2015 Yusuke Endoh <mame@tsg.ne.jp>
|
Wed Jun 3 01:10:38 2015 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* vm_method.c (rb_method_definition_set): remove a double assignment.
|
* vm_method.c (rb_method_definition_set): remove a double assignment.
|
||||||
|
|
|
@ -1768,8 +1768,8 @@ class TestModule < Test::Unit::TestCase
|
||||||
m2.send(:include, m)
|
m2.send(:include, m)
|
||||||
m2.class_variable_set(:@@bar, 2)
|
m2.class_variable_set(:@@bar, 2)
|
||||||
assert_equal([:@@foo], m.class_variables)
|
assert_equal([:@@foo], m.class_variables)
|
||||||
assert_equal([:@@bar, :@@foo], m2.class_variables)
|
assert_equal([:@@bar, :@@foo], m2.class_variables.sort)
|
||||||
assert_equal([:@@bar, :@@foo], m2.class_variables(true))
|
assert_equal([:@@bar, :@@foo], m2.class_variables(true).sort)
|
||||||
assert_equal([:@@bar], m2.class_variables(false))
|
assert_equal([:@@bar], m2.class_variables(false))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue