ruby-changes:12276
From: matz <ko1@a...>
Date: Mon, 6 Jul 2009 09:15:52 +0900 (JST)
Subject: [ruby-changes:12276] Ruby:r23968 (trunk): * test/ruby/test_module.rb (TestModule#test_undef): adjust to
matz 2009-07-06 09:15:29 +0900 (Mon, 06 Jul 2009) New Revision: 23968 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23968 Log: * test/ruby/test_module.rb (TestModule#test_undef): adjust to message change. * test/ruby/test_object.rb (TestObject#test_redefine_method_which_may_case_serious_problem): ditto. * test/ruby/test_object.rb (TestObject#test_remove_method): ditto. Modified files: trunk/ChangeLog trunk/test/ruby/test_module.rb trunk/test/ruby/test_object.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 23967) +++ ChangeLog (revision 23968) @@ -1,3 +1,12 @@ +Mon Jul 6 09:06:49 2009 Yukihiro Matsumoto <matz@r...> + + * test/ruby/test_module.rb (TestModule#test_undef): adjust to + message change. + + * test/ruby/test_object.rb (TestObject#test_redefine_method_which_may_case_serious_problem): ditto. + + * test/ruby/test_object.rb (TestObject#test_remove_method): ditto. + Mon Jul 6 09:04:45 2009 Nobuyoshi Nakada <nobu@r...> * enum.c (enum_join): deals with self recursive objects to get rid Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 23967) +++ test/ruby/test_module.rb (revision 23968) @@ -517,7 +517,7 @@ end %w(object_id __send__ initialize).each do |m| - assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{m}' may cause serious problem$/) + assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{m}' may cause serious problems$/) $VERBOSE = false Class.new.instance_eval { undef_method(:#{m}) } INPUT Index: test/ruby/test_object.rb =================================================================== --- test/ruby/test_object.rb (revision 23967) +++ test/ruby/test_object.rb (revision 23968) @@ -233,12 +233,12 @@ end def test_redefine_method_which_may_case_serious_problem - assert_in_out_err([], <<-INPUT, [], /warning: redefining `object_id' may cause serious problem$/) + assert_in_out_err([], <<-INPUT, [], /warning: redefining `object_id' may cause serious problems$/) $VERBOSE = false def (Object.new).object_id; end INPUT - assert_in_out_err([], <<-INPUT, [], /warning: redefining `__send__' may cause serious problem$/) + assert_in_out_err([], <<-INPUT, [], /warning: redefining `__send__' may cause serious problems$/) $VERBOSE = false def (Object.new).__send__; end INPUT @@ -266,7 +266,7 @@ end %w(object_id __send__ initialize).each do |m| - assert_in_out_err([], <<-INPUT, %w(:ok), /warning: removing `#{m}' may cause serious problem$/) + assert_in_out_err([], <<-INPUT, %w(:ok), /warning: removing `#{m}' may cause serious problems$/) $VERBOSE = false begin Class.new.instance_eval { remove_method(:#{m}) } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/