Created
May 24, 2011 01:58
-
-
Save notahat/988024 to your computer and use it in GitHub Desktop.
Make RSpec and Capybara give backtraces for controller exceptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, definitely not going to work on 3. The architecture for exception handling in controllers has changed.