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:
parent
64f4d7fcb0
commit
72bc0806a7
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue