diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 07:01:46 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 07:01:46 +0000 |
commit | 07b10cd59f372498e43d7bb10ce019e782c7a548 (patch) | |
tree | be446ad18f2474e94b6ed82032a0f75ef3267c68 /test/rdoc/test_rdoc_options.rb | |
parent | a985c5898cb2efd83e817dd476999f28af73f763 (diff) | |
download | ruby-07b10cd59f372498e43d7bb10ce019e782c7a548.tar.gz |
* 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
Diffstat (limited to 'test/rdoc/test_rdoc_options.rb')
-rw-r--r-- | test/rdoc/test_rdoc_options.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb index 14ccd0de0f..7fa0c10869 100644 --- a/test/rdoc/test_rdoc_options.rb +++ b/test/rdoc/test_rdoc_options.rb @@ -45,7 +45,7 @@ class TestRDocOptions < RDoc::TestCase def test_check_files_warn @options.verbosity = 2 - out, err = capture_io do + out, err = verbose_capture_io do @options.files = %w[nonexistent] @options.check_files @@ -572,7 +572,7 @@ rdoc_include: @options.verbosity = 2 - out, err = capture_io do + out, err = verbose_capture_io do @options.warn "warnings on" end |