Permalink
Browse files

Fixed ActionMailer generated tests to work properly after quoted refa…

…ctoring #1481 [patrick@lenz.sh]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6f6c6b8 commit f16e0ec3eb2402284d871653df3d6c042c1a852f @dhh dhh committed Jun 25, 2005
@@ -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

0 comments on commit f16e0ec

Please sign in to comment.