mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update test mail setup for Spree 2
https://github.com/openfoodfoundation/openfoodnetwork/issues/2882 The email setup differs between Spree 1 and Spree 2. We already encapsulated that setup in a single method which now needed changing.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user