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 70ff31d commit d39bba7c857c6560127bf94d8b64196167b5fbd7 @arthurnn arthurnn committed Mar 7, 2014
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

0 comments on commit d39bba7

Please sign in to comment.