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...
1 parent 6dd0f68 commit 3ac2aeadb4aacbae3f6bc7a08c1841ccc2f468b1 @arthurnn arthurnn committed Mar 7, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 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
test "method call to mail does not raise error" do

0 comments on commit 3ac2aea

Please sign in to comment.