aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_module.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 3ecdf7ad7c..29503ed9a0 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -73,9 +73,10 @@ class TestModule < Test::Unit::TestCase
end
def remove_rake_mixins(list)
- list.
- reject {|c| c.to_s == "RakeFileUtils" }.
- reject {|c| c.to_s.start_with?("FileUtils") }
+ list.reject {|c|
+ name = c.name
+ name.start_with?("Rake") or name.start_with?("FileUtils")
+ }
end
module Mixin