diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-30 15:57:06 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-30 15:57:06 +0000 |
commit | 22acf29509f5cfc44a3dfa9d418bad13b29291da (patch) | |
tree | f90343af34bfd756be8588ec6f4df0b476f77ac0 | |
parent | f3f74f49f0b91bf9186412c78ac93919d1e12b5e (diff) | |
download | ruby-22acf29509f5cfc44a3dfa9d418bad13b29291da.tar.gz |
* test/ruby/test_module.rb (test_ancestors, test_included_modules):
ignore rake mixins.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | test/ruby/test_module.rb | 14 |
2 files changed, 17 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Fri Jul 31 00:55:48 2009 Yusuke Endoh <mame@tsg.ne.jp> + + * test/ruby/test_module.rb (test_ancestors, test_included_modules): + ignore rake mixins. + Fri Jul 31 00:30:54 2009 Yusuke Endoh <mame@tsg.ne.jp> * vm_insnhelper.c (vm_call_cfunc): let set_trace_func use called_id @@ -23277,12 +23282,12 @@ Sun May 25 17:52:25 2008 Yusuke Endoh <mame@tsg.ne.jp> Sun May 25 04:30:45 2008 Yusuke Endoh <mame@tsg.ne.jp> - * test/ruby/test_modules.rb (remove_json_mixins): change judgment + * test/ruby/test_module.rb (remove_json_mixins): change judgment condition. Sun May 25 03:54:39 2008 Yusuke Endoh <mame@tsg.ne.jp> - * test/ruby/test_modules.rb (test_ancestors, test_included_modules): + * test/ruby/test_module.rb (test_ancestors, test_included_modules): ignore json mixins. Sun May 25 02:37:25 2008 Koichi Sasada <ko1@atdot.net> diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 4611abfbfb..c001c5507c 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -72,6 +72,12 @@ class TestModule < Test::Unit::TestCase list.reject {|c| c.to_s.start_with?("JSON") } end + def remove_rake_mixins(list) + list. + reject {|c| c.to_s == "RakeFileUtils" }. + reject {|c| c.to_s.start_with?("FileUtils") } + end + module Mixin MIXIN = 1 def mixin @@ -205,9 +211,9 @@ class TestModule < Test::Unit::TestCase assert_equal([Mixin], Mixin.ancestors) assert_equal([Object, Kernel, BasicObject], - remove_json_mixins(remove_pp_mixins(Object.ancestors))) + remove_rake_mixins(remove_json_mixins(remove_pp_mixins(Object.ancestors)))) assert_equal([String, Comparable, Object, Kernel, BasicObject], - remove_json_mixins(remove_pp_mixins(String.ancestors))) + remove_rake_mixins(remove_json_mixins(remove_pp_mixins(String.ancestors)))) end def test_class_eval @@ -246,9 +252,9 @@ class TestModule < Test::Unit::TestCase assert_equal([], Mixin.included_modules) assert_equal([Mixin], User.included_modules) assert_equal([Kernel], - remove_json_mixins(remove_pp_mixins(Object.included_modules))) + remove_rake_mixins(remove_json_mixins(remove_pp_mixins(Object.included_modules)))) assert_equal([Comparable, Kernel], - remove_json_mixins(remove_pp_mixins(String.included_modules))) + remove_rake_mixins(remove_json_mixins(remove_pp_mixins(String.included_modules)))) end def test_instance_methods |