diff --git a/spec/example_app/config/environments/development.rb b/spec/example_app/config/environments/development.rb index 683835e3b8..29a737614e 100644 --- a/spec/example_app/config/environments/development.rb +++ b/spec/example_app/config/environments/development.rb @@ -13,9 +13,6 @@ config.consider_all_requests_local = true config.action_controller.perform_caching = false - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = true - # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log @@ -38,6 +35,4 @@ # Raises error for missing translations config.action_view.raise_on_missing_translations = true - - config.action_mailer.default_url_options = { host: "localhost:3000" } end diff --git a/spec/example_app/config/environments/staging.rb b/spec/example_app/config/environments/staging.rb index d0e0f88c6e..d89e30cf11 100644 --- a/spec/example_app/config/environments/staging.rb +++ b/spec/example_app/config/environments/staging.rb @@ -1,11 +1 @@ require_relative "production" - -Mail.register_interceptor( - RecipientInterceptor.new(ENV.fetch("EMAIL_RECIPIENTS")) -) - -Rails.application.configure do - # ... - - config.action_mailer.default_url_options = { host: ENV.fetch("HOST") } -end