aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2019-07-25 22:34:40 -0400
committerGeorge Claghorn <george@basecamp.com>2019-07-25 22:34:40 -0400
commit72bc0806a7b378cd544e8fbf7ab22d74b7913ffb (patch)
treec1cc71544148f9934ff3ef36f4f6032f6c9ef3e9 /actionmailbox
parent64f4d7fcb00bdbdfa20f306f863914bc2c8e292b (diff)
downloadrails-72bc0806a7b378cd544e8fbf7ab22d74b7913ffb.tar.gz
rails-72bc0806a7b378cd544e8fbf7ab22d74b7913ffb.tar.bz2
rails-72bc0806a7b378cd544e8fbf7ab22d74b7913ffb.zip
Correct assertion argument order
Diffstat (limited to 'actionmailbox')
-rw-r--r--actionmailbox/test/controllers/rails/action_mailbox/inbound_emails_controller_test.rb3
1 files changed, 1 insertions, 2 deletions
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