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 |
With which Rails version? This was written against 2.3.something-old.
3
…On Wed, Nov 2, 2011 at 2:58 PM, Pete Yandell ***@***.*** wrote:
With which Rails version? This was written against 2.3.something-old.
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/988024
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
doesn't work for me :(