aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railtie.rb
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 /activerecord/lib/active_record/railtie.rb
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 'activerecord/lib/active_record/railtie.rb')
0 files changed, 0 insertions, 0 deletions