File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ def define
259259 args = opts + @rdoc_files
260260
261261 $stderr. puts "rdoc #{ args . join ' ' } " if Rake . application . options . trace
262+ RDoc ::RDoc . new . document args
262263 end
263264 end
264265
Original file line number Diff line number Diff line change @@ -209,6 +209,13 @@ def test_parse_coverage
209209 assert @options . force_update
210210 end
211211
212+ def test_parse_coverage_C
213+ @options . parse %w[ -C ]
214+
215+ assert @options . coverage_report
216+ assert @options . force_update
217+ end
218+
212219 def test_parse_coverage_no
213220 @options . parse %w[ --no-dcov ]
214221
@@ -221,6 +228,19 @@ def test_parse_coverage_level_1
221228 assert_equal 1 , @options . coverage_report
222229 end
223230
231+ def test_parse_coverage_C_level_1
232+ @options . parse %w[ -C1 ]
233+
234+ assert_equal 1 , @options . coverage_report
235+ end
236+
237+ def test_parse_coverage_C_level_0
238+ @options . parse %w[ -C0 ]
239+
240+ assert_equal 0 , @options . coverage_report
241+ assert @options . force_update
242+ end
243+
224244 def test_parse_dash_p
225245 out , err = capture_output do
226246 @options . parse %w[ -p ]
You can’t perform that action at this time.
0 commit comments