mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Correct the assertion argument order
This commit is contained in:
parent
e39efdb87a
commit
76ed911a91
1 changed files with 7 additions and 3 deletions
|
@ -20,21 +20,25 @@ module ActionMailbox
|
||||||
|
|
||||||
mail = inbound_email.mail
|
mail = inbound_email.mail
|
||||||
|
|
||||||
assert_equal 2, mail.parts.count
|
expected_mail_text_part = <<~TEXT.chomp
|
||||||
assert_equal mail.text_part.to_s, <<~TEXT.chomp
|
|
||||||
Content-Type: text/plain;\r
|
Content-Type: text/plain;\r
|
||||||
charset=UTF-8\r
|
charset=UTF-8\r
|
||||||
Content-Transfer-Encoding: 7bit\r
|
Content-Transfer-Encoding: 7bit\r
|
||||||
\r
|
\r
|
||||||
Hello, world
|
Hello, world
|
||||||
TEXT
|
TEXT
|
||||||
assert_equal mail.html_part.to_s, <<~HTML.chomp
|
|
||||||
|
expected_mail_html_part = <<~HTML.chomp
|
||||||
Content-Type: text/html;\r
|
Content-Type: text/html;\r
|
||||||
charset=UTF-8\r
|
charset=UTF-8\r
|
||||||
Content-Transfer-Encoding: 7bit\r
|
Content-Transfer-Encoding: 7bit\r
|
||||||
\r
|
\r
|
||||||
<h1>Hello, world</h1>
|
<h1>Hello, world</h1>
|
||||||
HTML
|
HTML
|
||||||
|
|
||||||
|
assert_equal 2, mail.parts.count
|
||||||
|
assert_equal expected_mail_text_part, mail.text_part.to_s
|
||||||
|
assert_equal expected_mail_html_part, mail.html_part.to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue