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
This commit is contained in:
Arthur Neves 2014-03-07 14:53:18 -05:00
parent 70ff31d69f
commit d39bba7c85
No known key found for this signature in database
GPG Key ID: 04A390FB1E433E17

@ -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