class RSpec::Core::Formatters::HtmlFormatter
def example_failed(example)
def example_failed(example) super(example) unless @header_red @header_red = true @printer.make_header_red end unless @example_group_red @example_group_red = true @printer.make_example_group_header_red(example_group_number) end @printer.move_progress(percent_done) exception = example.metadata[:execution_result][:exception] exception_details = if exception { :message => exception.message, :backtrace => format_backtrace(exception.backtrace, example).join("\n") } else false end extra = extra_failure_content(exception) @printer.print_example_failed( exception.pending_fixed?, example.description, example.execution_result[:run_time], @failed_examples.size, exception_details, (extra == "") ? false : extra, true ) @printer.flush end