mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Cleaning up expectations from the new way mail does it
This commit is contained in:
parent
fd9ee49f38
commit
bd89c391e8
1 changed files with 3 additions and 3 deletions
|
@ -674,7 +674,7 @@ The body
|
|||
EOF
|
||||
mail = Mail.new(msg)
|
||||
assert_equal "testing testing \326\244", mail.subject
|
||||
assert_equal "Subject: testing\r\n\t=?UTF-8?Q?_testing_=D6=A4=?=\r\n", mail[:subject].encoded
|
||||
assert_equal "Subject: testing =?UTF-8?Q?_testing_=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: =?UTF-8?Q?Foo_=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)
|
||||
|
@ -872,7 +872,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: =?UTF-8?Q?Foo_=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)
|
||||
|
|
Loading…
Reference in a new issue