Permalink
Browse files

Fixing up some bad test cases

  • Loading branch information...
1 parent dbcf01e commit 6c6bef245a7b636cbd6a0162cc5061d8c040aadb @mikel mikel committed Apr 8, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionmailer/test/old_base/mail_service_test.rb
@@ -567,7 +567,6 @@ def test_reply_to
def test_iso_charset
TestMailer.delivery_method = :test
-
expected = new_mail( "iso-8859-1" )
expected.to = @recipient
expected.subject = encode "testing isø charsets", "iso-8859-1"
@@ -868,15 +867,16 @@ def test_multipart_with_utf8_subject
assert_match(/#{regex}/, mail.encoded)
string = "Foo áëô îü"
string.force_encoding('UTF-8') if string.respond_to?(:force_encoding)
- assert_match(string, mail.subject.decoded)
+ assert_match(string, mail.subject)
end
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=?=')
assert_match(/#{regex}/, mail.encoded)
+ string = "Foo áëô îü"
string.force_encoding('UTF-8') if string.respond_to?(:force_encoding)
- assert_match(string, mail.subject.decoded)
+ assert_match(string, mail.subject)
end
def test_explicitly_multipart_messages

0 comments on commit 6c6bef2

Please sign in to comment.