diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-03-07 14:53:18 -0500 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-03-07 14:53:18 -0500 |
commit | d39bba7c857c6560127bf94d8b64196167b5fbd7 (patch) | |
tree | cb2ce0f0e70bebce34cd6d90c20adfaf29667915 | |
parent | 70ff31d69f017d1bc674b913865d5a008de0c8a6 (diff) | |
download | rails-d39bba7c857c6560127bf94d8b64196167b5fbd7.tar.gz rails-d39bba7c857c6560127bf94d8b64196167b5fbd7.tar.bz2 rails-d39bba7c857c6560127bf94d8b64196167b5fbd7.zip |
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
-rw-r--r-- | actionmailer/test/base_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionmailer/test/base_test.rb b/actionmailer/test/base_test.rb index 02707d0b5f..d4a89a17ee 100644 --- a/actionmailer/test/base_test.rb +++ b/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 |