* test/ruby/test_modules.rb (remove_json_mixins): change judgment
condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
87665465cd
commit
5c669c26c5
@ -1,3 +1,8 @@
|
|||||||
|
Sun May 25 04:30:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* test/ruby/test_modules.rb (remove_json_mixins): change judgment
|
||||||
|
condition.
|
||||||
|
|
||||||
Sun May 25 03:54:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
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_modules.rb (test_ancestors, test_included_modules):
|
||||||
|
@ -69,7 +69,7 @@ class TestModule < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def remove_json_mixins(list)
|
def remove_json_mixins(list)
|
||||||
list.reject {|c| c.instance_methods(false).include?(:to_json) }
|
list.reject {|c| c.to_s.start_with?("JSON") }
|
||||||
end
|
end
|
||||||
|
|
||||||
module Mixin
|
module Mixin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user