Module: Anyt::ReporterPatch

Defined in:
lib/anyt/ext/minitest.rb

Overview

Patch Spec reporter

Instance Method Summary collapse

Instance Method Details

#record_print_status(test) ⇒ Object

:nodoc:



140
141
142
143
144
145
146
# File 'lib/anyt/ext/minitest.rb', line 140

def record_print_status(test)
  test_name = test.name.gsub(/^test_/, "").strip
  print(magenta { pad_test(test_name) })
  print_colored_status(test)
  print(" (%.2fs)" % test.time) unless test.time.nil?
  puts
end