aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/test
diff options
context:
space:
mode:
authorKyle Keesling <kyle.keesling@gmail.com>2019-07-25 16:24:04 -0400
committerKyle Keesling <kyle.keesling@gmail.com>2019-07-25 21:11:29 -0400
commitce88f6bd2561f3ff31e39c70ae82b301ee0ddd79 (patch)
tree19337c74bfa9069340cc5dba9cff97f6761ed96d /actionmailbox/test
parentc9b7b9ff8adb3f01db0f9af90359030028a33b5b (diff)
downloadrails-ce88f6bd2561f3ff31e39c70ae82b301ee0ddd79.tar.gz
rails-ce88f6bd2561f3ff31e39c70ae82b301ee0ddd79.tar.bz2
rails-ce88f6bd2561f3ff31e39c70ae82b301ee0ddd79.zip
Fix filenames of attachments created via the inbound email conductor
controller passed along attachment file paths instead of their filenames
Diffstat (limited to 'actionmailbox/test')
-rw-r--r--actionmailbox/test/controllers/rails/action_mailbox/inbound_emails_controller_test.rb2
1 files changed, 2 insertions, 0 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 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