Skip to content

Commit

Permalink
Set show_exceptions in test to default none.
Browse files Browse the repository at this point in the history
  • Loading branch information
svanhesteren committed Sep 9, 2024
1 parent af22e2f commit dd71ba3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@
config.action_controller.perform_caching = false
config.cache_store = :null_store

# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = :all
# Set to one of the following (default is :all):
#
# :all - render error pages for all exceptions
# :rescuable - render error pages for exceptions declared by config.action_dispatch.rescue_responses
# :none - raise all exceptions
config.action_dispatch.show_exceptions = :none

# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
Expand Down

0 comments on commit dd71ba3

Please sign in to comment.