summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_class.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 055ddca629..093448f2c0 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -140,7 +140,7 @@ class TestClass < Test::Unit::TestCase
def foo; end
end
end
- assert_match(/method redefined; discarding old foo/, stderr)
+ assert_match(/:#{line}: warning: method redefined; discarding old foo/, stderr)
stderr = EnvUtil.verbose_warning do
Class.new do