diff --git a/spec/dummyapp/config/environments/test.rb b/spec/dummyapp/config/environments/test.rb index 785e13af..a1262481 100644 --- a/spec/dummyapp/config/environments/test.rb +++ b/spec/dummyapp/config/environments/test.rb @@ -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