mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a985c5898c
commit
07b10cd59f
10 changed files with 37 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue