diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-10 04:01:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-10 04:01:26 +0000 |
commit | b5d59da9f69c201620f576824074d6fb45e06278 (patch) | |
tree | bb2eef98f3f0a0b2aad9690fb502246e4498bd4e /test/ruby/test_module.rb | |
parent | 58b14e789273e3f9b05a54c9aa245d00f197d1ae (diff) | |
download | ruby-b5d59da9f69c201620f576824074d6fb45e06278.tar.gz |
* 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
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r-- | test/ruby/test_module.rb | 7 |
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 |