diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_module.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_object.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 37336a08a6..03fd2d9b90 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -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 diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index d339fb9c10..51a3cdc32b 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -233,12 +233,12 @@ class TestObject < Test::Unit::TestCase 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 @@ class TestObject < Test::Unit::TestCase 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}) } |