ruby-changes:21861
From: naruse <ko1@a...>
Date: Thu, 1 Dec 2011 00:20:10 +0900 (JST)
Subject: [ruby-changes:21861] naruse:r33910 (trunk): Fix 33906: remove JSON::Ext::Generator::GeneratorMethods::String.
naruse 2011-12-01 00:19:02 +0900 (Thu, 01 Dec 2011) New Revision: 33910 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33910 Log: Fix 33906: remove JSON::Ext::Generator::GeneratorMethods::String. Modified files: trunk/test/ruby/test_module.rb Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 33909) +++ test/ruby/test_module.rb (revision 33910) @@ -203,6 +203,7 @@ ancestors = Object.ancestors mixins = ancestors - [Object, Kernel, BasicObject] + mixins << JSON::Ext::Generator::GeneratorMethods::String if defined?(JSON::Ext::Generator::GeneratorMethods::String) assert_equal([Object, Kernel, BasicObject], ancestors - mixins) assert_equal([String, Comparable, Object, Kernel, BasicObject], String.ancestors - mixins) end @@ -263,6 +264,7 @@ assert_equal([Mixin], User.included_modules) mixins = Object.included_modules - [Kernel] + mixins << JSON::Ext::Generator::GeneratorMethods::String if defined?(JSON::Ext::Generator::GeneratorMethods::String) assert_equal([Kernel], Object.included_modules - mixins) assert_equal([Comparable, Kernel], String.included_modules - mixins) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/