ruby-changes:58273
From: Nobuyoshi <ko1@a...>
Date: Wed, 16 Oct 2019 15:18:25 +0900 (JST)
Subject: [ruby-changes:58273] d70855c725 (master): Added test for rdoc `--force-update` option
https://git.ruby-lang.org/ruby.git/commit/?id=d70855c725 From d70855c72584f303228b7821889c0b68813ec06f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 16 Oct 2019 15:16:51 +0900 Subject: Added test for rdoc `--force-update` option diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb index 0bc6eaa..5b79189 100644 --- a/test/rdoc/test_rdoc_options.rb +++ b/test/rdoc/test_rdoc_options.rb @@ -296,6 +296,20 @@ rdoc_include: https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_options.rb#L296 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] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/