diff options
author | Jamis Buck <jamis@37signals.com> | 2006-03-19 00:18:50 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2006-03-19 00:18:50 +0000 |
commit | 49efa02b9e8d868b2d28a3db76269d8b8fcde0a6 (patch) | |
tree | 0ec96c2e208dcecc1fff84ad85ba61dce3499871 /actionmailer/test | |
parent | db0e8ff1c3496841d7a307794dacecd82e55ce6a (diff) | |
download | rails-49efa02b9e8d868b2d28a3db76269d8b8fcde0a6.tar.gz rails-49efa02b9e8d868b2d28a3db76269d8b8fcde0a6.tar.bz2 rails-49efa02b9e8d868b2d28a3db76269d8b8fcde0a6.zip |
Nil charset caused subject line to be improperly quoted in implicitly multipart messages (closes #2662)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/test')
-rwxr-xr-x | actionmailer/test/mail_service_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/actionmailer/test/mail_service_test.rb b/actionmailer/test/mail_service_test.rb index 0689bf6728..c810cf1090 100755 --- a/actionmailer/test/mail_service_test.rb +++ b/actionmailer/test/mail_service_test.rb @@ -167,6 +167,14 @@ class TestMailer < ActionMailer::Base @implicit_parts_order = order if order end + def implicitly_multipart_with_utf8 + recipients "no.one@nowhere.test" + subject "Foo áëô îü" + from "some.one@somewhere.test" + template "implicitly_multipart_example" + body ({ "recipient" => "no.one@nowhere.test" }) + end + def html_mail(recipient) recipients recipient subject "html mail" @@ -646,6 +654,11 @@ EOF assert_match(/\nSubject: =\?utf-8\?Q\?Foo_.*?\?=/, mail.encoded) end + def test_implicitly_multipart_with_utf8 + mail = TestMailer.create_implicitly_multipart_with_utf8 + assert_match(/\nSubject: =\?utf-8\?Q\?Foo_.*?\?=/, mail.encoded) + end + def test_explicitly_multipart_messages mail = TestMailer.create_explicitly_multipart_example(@recipient) assert_equal 3, mail.parts.length |