diff options
Diffstat (limited to 'railties')
-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 |