From b5d59da9f69c201620f576824074d6fb45e06278 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 10 Jun 2011 04:01:26 +0000 Subject: [PATCH] * test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all module related to Rake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_module.rb | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2aaeefe3eb..261a276058 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 10 13:01:24 2011 Nobuyoshi Nakada + + * test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all + module related to Rake. + Fri Jun 10 09:52:38 2011 Eric Hodel * encoding.c: Mention that Encoding.compatible? can work with more 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