Skip to content

Commit

Permalink
Fix: config.action_dispatch.show_exceptions has changed in Rails 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Aug 31, 2024
1 parent f1f17fc commit 8007959
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
config.cache_store = :null_store

# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
config.action_dispatch.show_exceptions = if Gem::Version.new(Rails.version) >= Gem::Version.new('7.1')
:none
else
false
end

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

0 comments on commit 8007959

Please sign in to comment.