From 72bc0806a7b378cd544e8fbf7ab22d74b7913ffb Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Thu, 25 Jul 2019 22:34:40 -0400 Subject: Correct assertion argument order --- .../controllers/rails/action_mailbox/inbound_emails_controller_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'actionmailbox/test/controllers/rails') diff --git a/actionmailbox/test/controllers/rails/action_mailbox/inbound_emails_controller_test.rb b/actionmailbox/test/controllers/rails/action_mailbox/inbound_emails_controller_test.rb index ad13faf36c..06f5a9d6db 100644 --- a/actionmailbox/test/controllers/rails/action_mailbox/inbound_emails_controller_test.rb +++ b/actionmailbox/test/controllers/rails/action_mailbox/inbound_emails_controller_test.rb @@ -45,10 +45,9 @@ class Rails::Conductor::ActionMailbox::InboundEmailsControllerTest < ActionDispa end mail = ActionMailbox::InboundEmail.last.mail - attachment_filenames = mail.attachments.map(&:filename) assert_equal "Let's talk about these images:", mail.text_part.decoded assert_equal 2, mail.attachments.count - assert_equal attachment_filenames, ["avatar1.jpeg", "avatar2.jpeg"] + assert_equal %w[ avatar1.jpeg avatar2.jpeg ], mail.attachments.collect(&:filename) end end -- cgit v1.2.3