Module: Capybara::Screenshot::RSpec::TextReporter

Extended by:
BaseReporter
Defined in:
lib/capybara-screenshot/rspec/text_reporter.rb

Instance Method Summary collapse

Methods included from BaseReporter

enhance_with_screenshot

Instance Method Details

#dump_failure_info_with_screenshot(example) ⇒ Object



15
16
17
18
# File 'lib/capybara-screenshot/rspec/text_reporter.rb', line 15

def dump_failure_info_with_screenshot(example)
  dump_failure_info_without_screenshot example
  output_screenshot_info(example)
end

#example_failed_with_screenshot(notification) ⇒ Object



20
21
22
23
# File 'lib/capybara-screenshot/rspec/text_reporter.rb', line 20

def example_failed_with_screenshot(notification)
  example_failed_without_screenshot notification
  output_screenshot_info(notification.example)
end