mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Updating tests for Mail gem
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user