diff --git a/config/environments/test.rb b/config/environments/test.rb index f84b7f5f7f29..8f06eb4d4782 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -50,7 +50,7 @@ # To block requests before running the database cleaner require 'open_food_network/rack_request_blocker' # Make sure the middleware is inserted first in middleware chain - config.middleware.insert_before('ActionDispatch::Static', 'RackRequestBlocker') + config.middleware.insert_before(ActionDispatch::Static, RackRequestBlocker) config.active_job.queue_adapter = :test end