Skip to content

Commit 3c56707

Browse files
nobuaycabta
authored andcommitted
Added test for rdoc --force-update option
1 parent 555b294 commit 3c56707

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/rdoc/test_rdoc_options.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,20 @@ def test_parse_formatter
296296
e.message
297297
end
298298

299+
def test_parse_force_update
300+
@options.parse %w[--force-update]
301+
302+
assert @options.force_update
303+
304+
@options.parse %w[--no-force-update]
305+
306+
assert !@options.force_update
307+
308+
@options.parse %w[-U]
309+
310+
assert @options.force_update
311+
end
312+
299313
def test_parse_formatter_ri
300314
e = assert_raise OptionParser::InvalidOption do
301315
@options.parse %w[--format darkfish --ri]

0 commit comments

Comments
 (0)