Guest User

Untitled

a guest
Mar 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # features/support/error_handling.rb
  2.  
  3.  
  4. # If you set this to false, any error raised from within your app will bubble
  5. # up to your step definition and out to cucumber unless you catch it somewhere
  6. # on the way. You can make Rails rescue errors and render error pages on a
  7. # per-scenario basis by tagging a scenario or feature with the @allow-rescue tag.
  8. #
  9. # If you set this to true, Rails will rescue all errors and render error
  10. # pages, more or less in the same way your application would behave in the
  11. # default production environment. It's not recommended to do this for all
  12. # of your scenarios, as this makes it hard to discover errors in your application.
  13. ActionController::Base.allow_rescue = false
Add Comment
Please, Sign In to add comment