X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3b96bbc80976836c6783ddd81db2f93b7e3fa3a2..d6a2515cb0c55eb69c8bb1c872e13b5f59ea64b5:/test/jobs/trace_importer_job_test.rb diff --git a/test/jobs/trace_importer_job_test.rb b/test/jobs/trace_importer_job_test.rb index 73c8cebbe..bf30e6941 100644 --- a/test/jobs/trace_importer_job_test.rb +++ b/test/jobs/trace_importer_job_test.rb @@ -22,6 +22,8 @@ class TraceImporterJobTest < ActiveJob::TestCase email = ActionMailer::Base.deliveries.last assert_equal trace.user.email, email.to[0] assert_match(/success/, email.subject) + + ActionMailer::Base.deliveries.clear end def test_failure_notification @@ -44,6 +46,8 @@ class TraceImporterJobTest < ActiveJob::TestCase email = ActionMailer::Base.deliveries.last assert_equal trace.user.email, email.to[0] assert_match(/failure/, email.subject) + + ActionMailer::Base.deliveries.clear end def test_error_notification @@ -60,5 +64,7 @@ class TraceImporterJobTest < ActiveJob::TestCase email = ActionMailer::Base.deliveries.last assert_equal trace.user.email, email.to[0] assert_match(/failure/, email.subject) + + ActionMailer::Base.deliveries.clear end end