summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 19:31:30 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 19:31:30 +0000
commit75459c7a41aa0da87924211d3e405a4740c380b5 (patch)
treef4087b6ead7c7c70f6a3b271ae2726afa799ea42
parent4ccef3182f311101fe8c4871c4bf8e7cd1e27255 (diff)
downloadruby-75459c7a41aa0da87924211d3e405a4740c380b5.tar.gz
ruby-75459c7a41aa0da87924211d3e405a4740c380b5.tar.xz
ruby-75459c7a41aa0da87924211d3e405a4740c380b5.zip
* 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
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_module.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 66fe3c681..a49c233f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* test/ruby/test_modules.rb (test_ancestors, test_included_modules):
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