Set the common ActionMailer default_url_options only once

There is no need to set options other than the foodcoop during every
change of the scope. This also makes sure that the correct options will
be loaded during testing to fix problems with newer rails versions.
This commit is contained in:
Patrick Gansterer 2019-10-28 21:04:59 +01:00
parent 722bb474d1
commit 91eeac6c40
4 changed files with 10 additions and 3 deletions

View file

@ -19,6 +19,8 @@ default: &defaults
tax_default: 6.0
email_sender: noreply@minimal.test
host: localhost
development:
<<: *defaults

View file

@ -32,6 +32,7 @@ RSpec.configure do |config|
# without messing up tests run after that
config.before(:each) do
FoodsoftConfig.init
FoodsoftConfig.init_mailing
end
# If true, the base class of anonymous controllers will be inferred