diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-04-26 11:50:18 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-26 14:45:23 -0700 |
commit | 76d6a993647f3bbe39f31faa0b8ed8767a228301 (patch) | |
tree | 2c1e54176028be140065828ebf40cb2835b674eb /actionmailer/test/old_base | |
parent | 53c13f1acaa2eb05e7f418b53f6156a4f5a773e0 (diff) | |
download | rails-76d6a993647f3bbe39f31faa0b8ed8767a228301.tar.gz rails-76d6a993647f3bbe39f31faa0b8ed8767a228301.tar.bz2 rails-76d6a993647f3bbe39f31faa0b8ed8767a228301.zip |
Use explicit source encoding rather than forced UTF-8 from US-ASCII.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionmailer/test/old_base')
-rw-r--r-- | actionmailer/test/old_base/mail_service_test.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/actionmailer/test/old_base/mail_service_test.rb b/actionmailer/test/old_base/mail_service_test.rb index db2db59cc7..9da9132fe1 100644 --- a/actionmailer/test/old_base/mail_service_test.rb +++ b/actionmailer/test/old_base/mail_service_test.rb @@ -866,7 +866,6 @@ EOF 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 áëô îü" - string.force_encoding('UTF-8') if string.respond_to?(:force_encoding) assert_match(string, mail.subject) end @@ -875,7 +874,6 @@ EOF 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 áëô îü" - string.force_encoding('UTF-8') if string.respond_to?(:force_encoding) assert_match(string, mail.subject) end |