diff --git a/spec/support/email_helper.rb b/spec/support/email_helper.rb index 7ba3c19f1c..aea0cee76d 100644 --- a/spec/support/email_helper.rb +++ b/spec/support/email_helper.rb @@ -5,7 +5,7 @@ module OpenFoodNetwork # It's here in a single place to allow an easy upgrade to Spree 2 which # needs a different implementation of this method. def setup_email - create(:mail_method) + Spree::Config[:mails_from] = "test@ofn.example.org" end end end