diff options
author | Zuhao Wan <wanzuhao@gmail.com> | 2014-06-09 22:45:46 +0800 |
---|---|---|
committer | Zuhao Wan <wanzuhao@gmail.com> | 2014-06-12 18:49:40 +0800 |
commit | a1dbb4e7e0a580e013423c7adf8ba3127c4c59e0 (patch) | |
tree | 1a6065836115a0592c89fd09dd6363a49466aa91 /actionmailer | |
parent | a5c12cbd3c0e9b392edb9e4eb13dcdd256327acd (diff) | |
download | rails-a1dbb4e7e0a580e013423c7adf8ba3127c4c59e0.tar.gz rails-a1dbb4e7e0a580e013423c7adf8ba3127c4c59e0.tar.bz2 rails-a1dbb4e7e0a580e013423c7adf8ba3127c4c59e0.zip |
Add unregister_template_handler to prevent leaks.
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/test/abstract_unit.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb index 93d16f491d..4e5a9c3715 100644 --- a/actionmailer/test/abstract_unit.rb +++ b/actionmailer/test/abstract_unit.rb @@ -23,10 +23,6 @@ ActiveSupport::Deprecation.debug = true # Disable available locale checks to avoid warnings running the test suite. I18n.enforce_available_locales = false -# Bogus template processors -ActionView::Template.register_template_handler :haml, lambda { |template| "Look its HAML!".inspect } -ActionView::Template.register_template_handler :bak, lambda { |template| "Lame backup".inspect } - FIXTURE_LOAD_PATH = File.expand_path('fixtures', File.dirname(__FILE__)) ActionMailer::Base.view_paths = FIXTURE_LOAD_PATH |