Skip to content

Instantly share code, notes, and snippets.

@cheezy
Created April 16, 2013 10:07
Show Gist options
  • Save cheezy/5394815 to your computer and use it in GitHub Desktop.
Save cheezy/5394815 to your computer and use it in GitHub Desktop.
After do |scenario|
if scenario.failed?
filename = "error-#{scenario.__id__}.png"
@current_page.save_screenshot(filename)
embed(filename, 'image/png')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment