Class: TurnipFormatter::Printer::RuntimeError

Inherits:
Object
  • Object
show all
Extended by:
RSpec::Core::BacktraceFormatter, TurnipFormatter::Printer
Defined in:
lib/turnip_formatter/printer/runtime_error.rb

Class Method Summary collapse

Methods included from TurnipFormatter::Printer

render_template

Class Method Details



11
12
13
14
15
16
17
18
19
# File 'lib/turnip_formatter/printer/runtime_error.rb', line 11

def print_out(example, exception)
  exception.set_backtrace(format_backtrace(exception.backtrace))
  render_template(:runtime_exception, {
      example: example,
      runtime_exception: runtime_exception(exception),
      example_exception: example_exception(example),
    }
  )
end