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



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

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

#example_failed_with_screenshot(notification) ⇒ Object



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

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