1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #36882 from abhaynikam/36856-multi-part-test-helper-minor-change

Correct the assertion argument order
This commit is contained in:
Rafael França 2019-08-07 14:56:35 -04:00 committed by GitHub
commit d580d8c6dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,21 +20,25 @@ module ActionMailbox
mail = inbound_email.mail
assert_equal 2, mail.parts.count
assert_equal mail.text_part.to_s, <<~TEXT.chomp
expected_mail_text_part = <<~TEXT.chomp
Content-Type: text/plain;\r
charset=UTF-8\r
Content-Transfer-Encoding: 7bit\r
\r
Hello, world
TEXT
assert_equal mail.html_part.to_s, <<~HTML.chomp
expected_mail_html_part = <<~HTML.chomp
Content-Type: text/html;\r
charset=UTF-8\r
Content-Transfer-Encoding: 7bit\r
\r
<h1>Hello, world</h1>
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