From ce88f6bd2561f3ff31e39c70ae82b301ee0ddd79 Mon Sep 17 00:00:00 2001 From: Kyle Keesling Date: Thu, 25 Jul 2019 16:24:04 -0400 Subject: Fix filenames of attachments created via the inbound email conductor controller passed along attachment file paths instead of their filenames --- .../controllers/rails/action_mailbox/inbound_emails_controller_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionmailbox/test') 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 6fc39c2433..ad13faf36c 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,8 +45,10 @@ 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"] end end -- cgit v1.2.3