assert !ActionMailer::Base.deliveries.empty?, "Queue is empty"
If I have two unit tests that send mail, and I want to check in each that the queue is not empty, will I have to reset the queue in the second test (to clear anything that might be in there from the first test)?
Rails 3.
You have to empty it yourself because
ActionMailer::Base.deliverieswill persist between tests (It is a singleton). You should always clear the deliveries array before any test runs to ensure it is empty.