summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-06 00:15:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-06 00:15:29 +0000
commited86848563a9d739f090b6c56c7f7eb76c804331 (patch)
tree6c868b6256ee2987fc33324128a4b1a944ca1dc9 /test/ruby
parent7c3fff4f547dc8f74ffa9a0532597afeceb7bcc4 (diff)
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_module.rb2
-rw-r--r--test/ruby/test_object.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 37336a0..03fd2d9 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 d339fb9..51a3cdc 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}) }