From a1dbb4e7e0a580e013423c7adf8ba3127c4c59e0 Mon Sep 17 00:00:00 2001 From: Zuhao Wan Date: Mon, 9 Jun 2014 22:45:46 +0800 Subject: Add unregister_template_handler to prevent leaks. --- actionmailer/test/abstract_unit.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'actionmailer') 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 -- cgit v1.2.3