From 76ed911a91fabe24fa6d1968bdb2513cd70cc010 Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Thu, 8 Aug 2019 00:06:34 +0530 Subject: [PATCH] Correct the assertion argument order --- actionmailbox/test/unit/test_helper_test.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/actionmailbox/test/unit/test_helper_test.rb b/actionmailbox/test/unit/test_helper_test.rb index 6d4174d28e..d392c80133 100644 --- a/actionmailbox/test/unit/test_helper_test.rb +++ b/actionmailbox/test/unit/test_helper_test.rb @@ -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

Hello, world

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