Skip to content

Instantly share code, notes, and snippets.

@notahat
Created May 24, 2011 01:58
Show Gist options
  • Select an option

  • Save notahat/988024 to your computer and use it in GitHub Desktop.

Select an option

Save notahat/988024 to your computer and use it in GitHub Desktop.
Make RSpec and Capybara give backtraces for controller exceptions
# Put this in spec/support
# Make sure we get stack traces for controller and view exceptions.
ActionController::Base.class_eval do
def rescue_action_without_handler(exception)
raise exception
end
end
@notahat

notahat commented Nov 2, 2011

Copy link
Copy Markdown
Author

Yeah, definitely not going to work on 3. The architecture for exception handling in controllers has changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment