* 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2009-07-06 00:15:29 +00:00
parent 7c3fff4f54
commit ed86848563
3 changed files with 13 additions and 4 deletions

View file

@ -517,7 +517,7 @@ class TestModule < Test::Unit::TestCase
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