aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2016-02-08 11:47:25 +0100
committerYves Senn <yves.senn@gmail.com>2016-02-16 11:20:59 +0100
commit9d378747326d26cf1afdac4433ead22967af0984 (patch)
treebd377111a1ce085f8e31198fa636f6f9b8235254 /actionmailer/CHANGELOG.md
parent3dd9fe5db44777eaf3765875fe259d53e72a0448 (diff)
downloadrails-9d378747326d26cf1afdac4433ead22967af0984.tar.gz
rails-9d378747326d26cf1afdac4433ead22967af0984.tar.bz2
rails-9d378747326d26cf1afdac4433ead22967af0984.zip
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.
Diffstat (limited to 'actionmailer/CHANGELOG.md')
-rw-r--r--actionmailer/CHANGELOG.md6
1 files changed, 6 insertions, 0 deletions
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.