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
|
@ -330,8 +330,6 @@ module Api
|
|||
assert_equal "commented", js["properties"]["comments"].last["action"]
|
||||
assert_equal "This is an additional comment", js["properties"]["comments"].last["text"]
|
||||
assert_equal third_user.display_name, js["properties"]["comments"].last["user"]
|
||||
|
||||
ActionMailer::Base.deliveries.clear
|
||||
end
|
||||
|
||||
def test_comment_with_notifications_success
|
||||
|
@ -395,8 +393,6 @@ module Api
|
|||
assert_equal "commented", js["properties"]["comments"].last["action"]
|
||||
assert_equal "This is an additional comment", js["properties"]["comments"].last["text"]
|
||||
assert_equal third_user.display_name, js["properties"]["comments"].last["user"]
|
||||
|
||||
ActionMailer::Base.deliveries.clear
|
||||
end
|
||||
|
||||
def test_comment_twice_success
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue