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

Correct assertion argument order

This commit is contained in:
George Claghorn 2019-07-25 22:34:40 -04:00
parent 64f4d7fcb0
commit 72bc0806a7

View file

@ -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