Class: RSpec::Core::Formatters::ExceptionPresenter

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/core/formatters_ext.rb

Instance Method Summary collapse

Instance Method Details

#fully_formatted_lines(failure_number, colorizer) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/rspec/core/formatters_ext.rb', line 5

def fully_formatted_lines(failure_number, colorizer)
  [
    detail_formatter.call(example, colorizer),
    formatted_message_and_backtrace(colorizer),
    extra_detail_formatter.call(failure_number, colorizer)
  ].compact.flatten.map { |line| "#{' ' * (2 + @indentation)}#{line}" }
end