From 75459c7a41aa0da87924211d3e405a4740c380b5 Mon Sep 17 00:00:00 2001 From: mame Date: Sat, 24 May 2008 19:31:30 +0000 Subject: * test/ruby/test_modules.rb (remove_json_mixins): change judgment condition. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_module.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_module.rb') diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 6e02c557e..31e4897a2 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 -- cgit