diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-25 11:02:17 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-25 11:02:17 +0000 |
commit | f16e0ec3eb2402284d871653df3d6c042c1a852f (patch) | |
tree | 8ca8875a958592c66c13872faf4c16005a6deca6 /railties/lib/rails_generator/generators/components/mailer | |
parent | 6f6c6b8bcb78169bcd6dd3aaa1c0410e7b36b567 (diff) | |
download | rails-f16e0ec3eb2402284d871653df3d6c042c1a852f.tar.gz rails-f16e0ec3eb2402284d871653df3d6c042c1a852f.tar.bz2 rails-f16e0ec3eb2402284d871653df3d6c042c1a852f.zip |
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
Diffstat (limited to 'railties/lib/rails_generator/generators/components/mailer')
-rw-r--r-- | railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb b/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb index 0874a6fd91..9af5ef29c2 100644 --- a/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +++ b/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb @@ -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 @@ class <%= class_name %>Test < Test::Unit::TestCase end def encode(subject) - ActionMailer::Base.quoted_printable(subject, CHARSET) + quoted_printable(subject, CHARSET) end end |