mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added test for rdoc --force-update
option
This commit is contained in:
parent
17ee01e3f6
commit
d70855c725
1 changed files with 14 additions and 0 deletions
|
@ -296,6 +296,20 @@ rdoc_include:
|
|||
e.message
|
||||
end
|
||||
|
||||
def test_parse_force_update
|
||||
@options.parse %w[--force-update]
|
||||
|
||||
assert @options.force_update
|
||||
|
||||
@options.parse %w[--no-force-update]
|
||||
|
||||
assert !@options.force_update
|
||||
|
||||
@options.parse %w[-U]
|
||||
|
||||
assert @options.force_update
|
||||
end
|
||||
|
||||
def test_parse_formatter_ri
|
||||
e = assert_raise OptionParser::InvalidOption do
|
||||
@options.parse %w[--format darkfish --ri]
|
||||
|
|
Loading…
Add table
Reference in a new issue