Class: MountainBerryFields::Test::RSpec::Formatter

Inherits:
RSpec::Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/mountain_berry_fields/test/rspec_formatter.rb

Instance Method Summary collapse

Instance Method Details

#example_failed(example) ⇒ Object



8
9
10
11
12
# File 'lib/mountain_berry_fields/test/rspec_formatter.rb', line 8

def example_failed(example)
  print JSON.dump 'full_description' => example.full_description,
                  'message'          => example.exception.message,
                  'backtrace'        => format_backtrace(example.exception.backtrace, example)
end