aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/abstract_unit.rb
diff options
context:
space:
mode:
authorZuhao Wan <wanzuhao@gmail.com>2014-06-09 22:45:46 +0800
committerZuhao Wan <wanzuhao@gmail.com>2014-06-12 18:49:40 +0800
commita1dbb4e7e0a580e013423c7adf8ba3127c4c59e0 (patch)
tree1a6065836115a0592c89fd09dd6363a49466aa91 /actionmailer/test/abstract_unit.rb
parenta5c12cbd3c0e9b392edb9e4eb13dcdd256327acd (diff)
downloadrails-a1dbb4e7e0a580e013423c7adf8ba3127c4c59e0.tar.gz
rails-a1dbb4e7e0a580e013423c7adf8ba3127c4c59e0.tar.bz2
rails-a1dbb4e7e0a580e013423c7adf8ba3127c4c59e0.zip
Add unregister_template_handler to prevent leaks.
Diffstat (limited to 'actionmailer/test/abstract_unit.rb')
-rw-r--r--actionmailer/test/abstract_unit.rb4
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