• Y
    reset `ActionMailer::Base.deliveries` in `ActionDispatch::IntegrationTest`. · 9d378747
    Yves Senn 提交于
    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.
    9d378747
railtie.rb 2.4 KB