Module: Howdoc::MinitestIntegration

Defined in:
lib/howdoc/minitest.rb

Overview

Optional convenience for Minitest suites. The gem deliberately does not try to guess how a project starts and finishes a test, because that wiring is six readable lines in the project's own test case and any guess would be wrong somewhere. All this offers is the one hook that has no good place in a test case: assembling the index once the whole run is over.

Class Method Summary collapse

Class Method Details

.install_at_exit!Object



14
15
16
17
18
19
# File 'lib/howdoc/minitest.rb', line 14

def install_at_exit!
  return if @installed

  @installed = true
  ::Minitest.after_run { Howdoc.finalize }
end