diff --git a/config/application.rb b/config/application.rb index f635c67a95..9377984296 100644 --- a/config/application.rb +++ b/config/application.rb @@ -25,7 +25,7 @@ module Openfoodnetwork config.after_initialize do # We need this here because the test env file loads before the Spree engine is loaded - Spree::Core::Engine.routes.default_url_options[:host] = 'test.host' if Rails.env = 'test' + Spree::Core::Engine.routes.default_url_options[:host] = 'test.host' if Rails.env == 'test' end # We reload the routes here