Method: Minitest::Runnable.with_info_handler
- Defined in:
- lib/minitest.rb
.with_info_handler(reporter, &block) ⇒ Object
:nodoc:
368 369 370 371 372 373 374 375 376 377 378 379 |
# File 'lib/minitest.rb', line 368 def self.with_info_handler reporter, &block # :nodoc: handler = lambda do unless reporter.passed? then warn "Current results:" warn "" warn reporter.reporters.first warn "" end end on_signal ::Minitest.info_signal, handler, &block end |