Skip to content

Commit

Permalink
Fix setting action_dispatch.show_exceptions for Rails 7.2
Browse files Browse the repository at this point in the history
Since Rails 7.1 we need to set this to `:none`.
The fix made was not very future proof...
  • Loading branch information
tvdeyen committed Sep 3, 2024
1 parent bfa7a61 commit 2eb0f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
config.cache_store = :null_store

# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = ENV.fetch("RAILS_VERSION", "7.1") == "7.1" ? :none : false
config.action_dispatch.show_exceptions = Rails.gem_version >= Gem::Version.new("7.1") ? :none : false

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

0 comments on commit 2eb0f9c

Please sign in to comment.