module CapybaraInlineScreenshot::Rspec
Public Instance Methods
example_failed_with_screenshot(notification)
click to toggle source
# File lib/capybara-inline-screenshot/rspec.rb, line 10 def example_failed_with_screenshot(notification) example_failed_without_screenshot(notification) if screenshot = notification.example.metadata[:screenshot] output.puts CapybaraScreenshot::Helpers.yellow("HTML screenshot: file://#{screenshot[:html]}") if screenshot[:html] output.puts CapybaraScreenshot::Helpers.yellow("Image screenshot: file://#{screenshot[:image]}") if screenshot[:image] output.puts CapybaraInlineScreenshot.escape_code_for_image(screenshot[:image]) if screenshot[:image] end end