class HtmlWithPassedTime

This is formatter for `rspec` to show end time of each `it`

Public Instance Methods

example_passed(passed) click to toggle source

Formatter for passed example

# File lib/html_with_passed_time.rb, line 11
def example_passed(passed)
  result_data = passed.example.execution_result
  @printer.move_progress(percent_done)
  @printer.print_example_passed("#{passed.example.description} : \
                                Test started at: #{result_data.started_at} \,
                                Test finished at: #{result_data.finished_at}",
                                result_data.run_time.to_s)
  @printer.flush
end