class StopwatchFormatter

Constants

DURATION_FORMAT

Public Instance Methods

failure_output(example, exception) click to toggle source
# File lib/stopwatch_formatter.rb, line 7
def failure_output(example, exception)
  failure_color(DURATION_FORMAT % ["#{current_indentation}#{example.description.strip} (FAILED - #{next_failure_index})", example.execution_result[:run_time]])
end
passed_output(example) click to toggle source
# File lib/stopwatch_formatter.rb, line 11
def passed_output(example)
  success_color(DURATION_FORMAT % ["#{current_indentation}#{example.description.strip}", example.execution_result[:run_time]])
end