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:
parent
07965246f8
commit
31805df53f
11 changed files with 1 additions and 72 deletions
|
@ -236,8 +236,6 @@ module Api
|
|||
assert_equal 1, email.to.length
|
||||
assert_equal "[OpenStreetMap] #{commenter_user.display_name} has commented on one of your changesets", email.subject
|
||||
assert_equal creator_user.email, email.to.first
|
||||
|
||||
ActionMailer::Base.deliveries.clear
|
||||
end
|
||||
|
||||
def test_create_on_changeset_with_changeset_creator_and_other_user_subscribers
|
||||
|
@ -267,8 +265,6 @@ module Api
|
|||
assert_not_nil email
|
||||
assert_equal 1, email.to.length
|
||||
assert_equal "[OpenStreetMap] #{commenter_user.display_name} has commented on a changeset you are interested in", email.subject
|
||||
|
||||
ActionMailer::Base.deliveries.clear
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue