diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 19:31:30 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 19:31:30 +0000 |
commit | 5c669c26c57b82abc70693f7b4ac6a8a8c63a26e (patch) | |
tree | f4087b6ead7c7c70f6a3b271ae2726afa799ea42 /test/ruby | |
parent | 87665465cd97b672237754e2ea967a4adc87cf48 (diff) | |
download | ruby-5c669c26c57b82abc70693f7b4ac6a8a8c63a26e.tar.gz |
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_module.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 6e02c557ed..31e4897a29 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -69,7 +69,7 @@ class TestModule < Test::Unit::TestCase end 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 module Mixin |