From 9d378747326d26cf1afdac4433ead22967af0984 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Mon, 8 Feb 2016 11:47:25 +0100 Subject: reset `ActionMailer::Base.deliveries` in `ActionDispatch::IntegrationTest`. Whenever you are sending emails in integration tests using the `:test` delivery method you need to make sure that `ActionMailer::Base.deliveries` is reset after every test. This piece of boilerplate code is present in all my applications that send emails. Let's have `ActionDispatch::IntegrationTest` reset the deliveries automatically. --- actionmailer/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionmailer/CHANGELOG.md') diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 22e9bd12a1..1531f2b471 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1,3 +1,9 @@ +* Reset `ActionMailer::Base.deliveries` after every test in + `ActionDispatch::IntegrationTest`. + + *Yves Senn* + + ## Rails 5.0.0.beta2 (February 01, 2016) ## * No changes. -- cgit v1.2.3