mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to RDoc 2.5.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f8e51f7e59
commit
a7df5ace7e
7 changed files with 32 additions and 12 deletions
|
@ -14,16 +14,18 @@ class TestRDocOptions < MiniTest::Unit::TestCase
|
|||
end
|
||||
|
||||
refute_match %r%^Usage: %, err
|
||||
assert_match %r%^invalid option: --bogus%, err
|
||||
assert_match %r%^invalid options: --bogus%, err
|
||||
end
|
||||
|
||||
def test_parse_ignore_invalid_default
|
||||
out, err = capture_io do
|
||||
@options.parse %w[--bogus]
|
||||
@options.parse %w[--bogus --main BLAH]
|
||||
end
|
||||
|
||||
refute_match %r%^Usage: %, err
|
||||
assert_match %r%^invalid option: --bogus%, err
|
||||
assert_match %r%^invalid options: --bogus%, err
|
||||
|
||||
assert_equal 'BLAH', @options.main_page
|
||||
end
|
||||
|
||||
def test_parse_ignore_invalid_no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue