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
|
@ -167,7 +167,7 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_match(/Test message body/, e.text_part.decoded)
|
||||
assert_match(/Test message body/, e.html_part.decoded)
|
||||
assert_match %r{#{Settings.server_url}/messages/[0-9]+}, e.text_part.decoded
|
||||
ActionMailer::Base.deliveries.clear
|
||||
|
||||
m = Message.last
|
||||
assert_equal user.id, m.from_user_id
|
||||
assert_equal recipient_user.id, m.to_user_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue