提交 b2835f72 编写于 作者: G George Claghorn

Correct assertion argument order

上级 ddd5ceab
......@@ -43,10 +43,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册