diff options
Diffstat (limited to 'test')
-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 |