diff options
author | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-23 22:34:13 +0000 |
---|---|---|
committer | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-23 22:34:13 +0000 |
commit | d1919daa4282b29d22240c7fee977afbcbc7ea58 (patch) | |
tree | cb3c0afd59799468d801b5f674fedd3108732bad /test/ruby/test_module.rb | |
parent | 2c43b9664b29f76c73ac8bae5400b79d0a5313e0 (diff) | |
download | ruby-d1919daa4282b29d22240c7fee977afbcbc7ea58.tar.gz |
fixed tests broken by new minitest mixin
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r-- | test/ruby/test_module.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index e2680dd700..a51681d29b 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -79,6 +79,10 @@ class TestModule < Test::Unit::TestCase } end + def remove_minitest_mixins(list) + list.reject {|c| c.to_s.start_with?("MiniTest") } + end + module Mixin MIXIN = 1 def mixin @@ -217,9 +221,9 @@ class TestModule < Test::Unit::TestCase assert_equal([Mixin], Mixin.ancestors) assert_equal([Object, Kernel, BasicObject], - remove_rake_mixins(remove_json_mixins(remove_pp_mixins(Object.ancestors)))) + remove_minitest_mixins(remove_rake_mixins(remove_json_mixins(remove_pp_mixins(Object.ancestors))))) assert_equal([String, Comparable, Object, Kernel, BasicObject], - remove_rake_mixins(remove_json_mixins(remove_pp_mixins(String.ancestors)))) + remove_minitest_mixins(remove_rake_mixins(remove_json_mixins(remove_pp_mixins(String.ancestors))))) end CLASS_EVAL = 2 @@ -277,9 +281,9 @@ class TestModule < Test::Unit::TestCase assert_equal([], Mixin.included_modules) assert_equal([Mixin], User.included_modules) assert_equal([Kernel], - remove_rake_mixins(remove_json_mixins(remove_pp_mixins(Object.included_modules)))) + remove_minitest_mixins(remove_rake_mixins(remove_json_mixins(remove_pp_mixins(Object.included_modules))))) assert_equal([Comparable, Kernel], - remove_rake_mixins(remove_json_mixins(remove_pp_mixins(String.included_modules)))) + remove_minitest_mixins(remove_rake_mixins(remove_json_mixins(remove_pp_mixins(String.included_modules))))) end def test_instance_methods |