Skip to content

Instantly share code, notes, and snippets.

@simon2k
Created June 26, 2012 09:55
Show Gist options
  • Save simon2k/2994758 to your computer and use it in GitHub Desktop.
Save simon2k/2994758 to your computer and use it in GitHub Desktop.
rspec debugger
require 'ripl'
config.after(:each) do
if exception = example.instance_variable_get(:@exception)
save_and_open_page unless Capybara.current_driver == :selenium
Ripl.start :binding => binding
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment