Skip to content

Instantly share code, notes, and snippets.

@alindeman
Created April 21, 2012 14:31
Show Gist options
  • Select an option

  • Save alindeman/2437377 to your computer and use it in GitHub Desktop.

Select an option

Save alindeman/2437377 to your computer and use it in GitHub Desktop.
RSpec.configure do |config|
config.after do
if example.exception && example.metadata[:type] == :request
puts "current url: #{page.current_url}"
puts "page source:\n\n #{page.source} \n\n"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment