Skip to content

Commit

Permalink
Use newer interface for "show_exceptions" as it has been changed for …
Browse files Browse the repository at this point in the history
…Rails 7.2
  • Loading branch information
mateuszgorniak committed Jan 8, 2025
1 parent 2538ec0 commit fa23a7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/dummyapp/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
config.action_controller.perform_caching = false

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

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

0 comments on commit fa23a7c

Please sign in to comment.