Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure we clean preview_interceptors

We should make sure we clean preview_interceptors after each test so they dont leaky to the next test
  • Loading branch information...
commit 3ac2aeadb4aacbae3f6bc7a08c1841ccc2f468b1 1 parent 6dd0f68
@arthurnn arthurnn authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  actionmailer/test/base_test.rb
View
1  actionmailer/test/base_test.rb
@@ -13,6 +13,7 @@ class BaseTest < ActiveSupport::TestCase
def teardown
ActionMailer::Base.asset_host = nil
ActionMailer::Base.assets_dir = nil
+ ActionMailer::Base.preview_interceptors.clear
end
test "method call to mail does not raise error" do
Please sign in to comment.
Something went wrong with that request. Please try again.