Updating tests for Mail gem

This commit is contained in:
Mikel Lindsaar
2009-11-22 00:04:36 +11:00
parent 0e38f5bdcc
commit f6f70540bb
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ class MailerHelperTest < Test::Unit::TestCase
def test_use_mail_helper
mail = HelperMailer.create_use_mail_helper(@recipient)
assert_match %r{ But soft!}, mail.encoded
assert_match %r{east, and\n Juliet}, mail.encoded
assert_match %r{east, and\r\n Juliet}, mail.encoded
end
end

View File

@@ -695,7 +695,7 @@ The body
EOF
mail = Mail.new(msg)
assert_equal "testing testing \326\244", mail.subject.decoded
assert_equal "=?utf-8?Q?testing_testing_=D6=A4?=", mail.quoted_subject
assert_equal "Subject: =?utf-8?Q?testing_testing_=D6=A4?=\r\n", mail.subject.encoded
end
def test_unquote_7bit_subject