From 7c0dfa35dbcfdb60f4cbd07b55f194a04e1b48c1 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 3 Dec 2008 13:58:47 -0600 Subject: Register bogus template handlers for ActionMailer test fixtures --- actionmailer/test/abstract_unit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionmailer/test/abstract_unit.rb') diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb index 1617b88c8e..ad1eac912b 100644 --- a/actionmailer/test/abstract_unit.rb +++ b/actionmailer/test/abstract_unit.rb @@ -9,6 +9,10 @@ require 'action_mailer/test_case' # Show backtraces for deprecated behavior for quicker cleanup. ActiveSupport::Deprecation.debug = true +# Bogus template processors +ActionView::Template.register_template_handler :haml, lambda { |template| "Look its HAML!" } +ActionView::Template.register_template_handler :bak, lambda { |template| "Lame backup" } + $:.unshift "#{File.dirname(__FILE__)}/fixtures/helpers" ActionMailer::Base.template_root = "#{File.dirname(__FILE__)}/fixtures" -- cgit v1.2.3