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:
parent
70ff31d69f
commit
d39bba7c85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user