Remove some unnecessary calls to clear the mail queue

These were not needed at the end of most tests for quite some time,
since rails clears them by default for controller and integration tests,
and also no longer required in system tests after #5691
This commit is contained in:
Andy Allan 2025-02-16 16:02:01 +00:00
parent 07965246f8
commit 31805df53f
11 changed files with 1 additions and 72 deletions

View file

@ -87,8 +87,6 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
# Check the page
assert_redirected_to :controller => :confirmations, :action => :confirm, :display_name => user.display_name
ActionMailer::Base.deliveries.clear
end
def test_create_duplicate_email
@ -189,8 +187,6 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
perform_enqueued_jobs
end
end
ActionMailer::Base.deliveries.clear
end
def test_go_public