From 4837337c8d3acf00c3e405b59b66a4866fce3cab Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 30 May 2024 16:10:41 +1000 Subject: [PATCH] Allow forgery protection in tests It makes for a more accurate test, and reveals bug #12533 --- config/environments/test.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/environments/test.rb b/config/environments/test.rb index cfba7d0307..8498bf7cac 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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.