Allow forgery protection in tests

It makes for a more accurate test, and reveals bug #12533
This commit is contained in:
David Cook
2024-05-30 16:10:41 +10:00
parent b6a50d85b2
commit 4837337c8d

View File

@@ -27,9 +27,6 @@ Openfoodnetwork::Application.configure do
# Raise exceptions instead of rendering exception templates
config.action_dispatch.show_exceptions = false
# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.