From 07b10cd59f372498e43d7bb10ce019e782c7a548 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 29 Nov 2012 07:01:46 +0000 Subject: * lib/rdoc/test_case.rb (RDoc::TestCase#verbose_capture_io): defined for asserts of warnings. * test/rdoc: use verbose_capture_io on asserts of warnings. they failed when tests was run with RUBYOPT=-W0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rdoc/test_rdoc_context_section.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/rdoc/test_rdoc_context_section.rb') diff --git a/test/rdoc/test_rdoc_context_section.rb b/test/rdoc/test_rdoc_context_section.rb index 716d3ae6bb..d492c17048 100644 --- a/test/rdoc/test_rdoc_context_section.rb +++ b/test/rdoc/test_rdoc_context_section.rb @@ -126,7 +126,7 @@ class TestRDocContextSection < RDoc::TestCase end def test_sequence - _, err = capture_io do + _, err = verbose_capture_io do assert_match(/\ASEC\d{5}\Z/, @s.sequence) end -- cgit v1.2.3