Remove useless test header setup for emails

Once upon a time we needed a helper to set the `from` header of emails.
This is now set in the ApplicationMailer and not necessary any more.
This commit is contained in:
Maikel Linke
2023-04-20 12:06:00 +10:00
parent 89cb3b7c14
commit 9998025687
22 changed files with 0 additions and 70 deletions

View File

@@ -2,12 +2,6 @@
module OpenFoodNetwork
module EmailHelper
# Some specs trigger actions that send emails, for example creating an order.
# But sending emails doesn't work out-of-the-box. This code sets it up.
def setup_email
Spree::Config[:mails_from] = "test@ofn.example.org"
end
# Ensures the value `perform_deliveries` had is restored. This saves us
# from messing up with the test suite's global state which is cause of
# trouble.