diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-06-07 15:30:08 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-07 21:36:56 +0200 |
commit | 50031bf932bca7c2e0dc96e2a13d4e4db9af6a50 (patch) | |
tree | 1698275734c5ec04bf6b5a623b6846149b6f593a | |
parent | ab764ecbfea31a3b14323283287e2fc80955ace6 (diff) | |
download | rails-50031bf932bca7c2e0dc96e2a13d4e4db9af6a50.tar.gz rails-50031bf932bca7c2e0dc96e2a13d4e4db9af6a50.tar.bz2 rails-50031bf932bca7c2e0dc96e2a13d4e4db9af6a50.zip |
Updating ActionMailer to Mail 2.2.2 (fixing two tests to suit)
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r-- | actionmailer/actionmailer.gemspec | 2 | ||||
-rw-r--r-- | actionmailer/test/old_base/mail_service_test.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/actionmailer/actionmailer.gemspec b/actionmailer/actionmailer.gemspec index 4706b63b79..1e34352f53 100644 --- a/actionmailer/actionmailer.gemspec +++ b/actionmailer/actionmailer.gemspec @@ -20,5 +20,5 @@ Gem::Specification.new do |s| s.has_rdoc = true s.add_dependency('actionpack', version) - s.add_dependency('mail', '~> 2.2.1') + s.add_dependency('mail', '~> 2.2.2') end diff --git a/actionmailer/test/old_base/mail_service_test.rb b/actionmailer/test/old_base/mail_service_test.rb index 7054e8052a..e8e8fcedc9 100644 --- a/actionmailer/test/old_base/mail_service_test.rb +++ b/actionmailer/test/old_base/mail_service_test.rb @@ -674,7 +674,7 @@ The body EOF mail = Mail.new(msg) assert_equal "testing testing \326\244", mail.subject - assert_equal "Subject: =?UTF-8?Q?testing_testing_=D6=A4?=\r\n", mail[:subject].encoded + assert_equal "Subject: testing testing =?UTF-8?Q?_=D6=A4=?=\r\n", mail[:subject].encoded end def test_unquote_7bit_subject @@ -863,7 +863,7 @@ EOF def test_multipart_with_utf8_subject mail = TestMailer.multipart_with_utf8_subject(@recipient) - regex = Regexp.escape('Subject: =?UTF-8?Q?Foo_=C3=A1=C3=AB=C3=B4_=C3=AE=C3=BC?=') + regex = Regexp.escape('Subject: Foo =?UTF-8?Q?=C3=A1=C3=AB=C3=B4=?= =?UTF-8?Q?_=C3=AE=C3=BC=?=') assert_match(/#{regex}/, mail.encoded) string = "Foo áëô îü" assert_match(string, mail.subject) @@ -871,7 +871,7 @@ EOF def test_implicitly_multipart_with_utf8 mail = TestMailer.implicitly_multipart_with_utf8 - regex = Regexp.escape('Subject: =?UTF-8?Q?Foo_=C3=A1=C3=AB=C3=B4_=C3=AE=C3=BC?=') + regex = Regexp.escape('Subject: Foo =?UTF-8?Q?=C3=A1=C3=AB=C3=B4=?= =?UTF-8?Q?_=C3=AE=C3=BC=?=') assert_match(/#{regex}/, mail.encoded) string = "Foo áëô îü" assert_match(string, mail.subject) |