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:



125
126
127
128
129
130
131
# File 'lib/anyt/ext/minitest.rb', line 125

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