Fixed ActionMailer generated tests to work properly after quoted refactoring #1481 [patrick@lenz.sh]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-06-25 11:02:17 +00:00
parent 6f6c6b8bcb
commit f16e0ec3eb

@ -5,6 +5,8 @@ class <%= class_name %>Test < Test::Unit::TestCase
FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures'
CHARSET = "utf-8"
include ActionMailer::Quoting
def setup
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
@ -30,6 +32,6 @@ def read_fixture(action)
end
def encode(subject)
ActionMailer::Base.quoted_printable(subject, CHARSET)
quoted_printable(subject, CHARSET)
end
end