diff --git a/test/mailers/subscription_mailer_test.rb b/test/mailers/subscription_mailer_test.rb index 096a8202a..0e17e7a9d 100644 --- a/test/mailers/subscription_mailer_test.rb +++ b/test/mailers/subscription_mailer_test.rb @@ -10,6 +10,7 @@ class SubscriptionMailerTest < ActionMailer::TestCase Rails.application.routes.default_url_options = Rails.application.config.action_mailer.default_url_options # Avoids queued emails affecting `assert_email` counts. See: https://github.com/ElixirTeSS/TeSS/issues/719 perform_enqueued_jobs + ActionMailer::Base.deliveries.clear end teardown do