rails--rails/actionmailbox/test
David Jones c6c53a02a5 Permit attachments in mailbox conductor params
Prior to this commit, when adding attachments to an inbound email
through the conductor, the log would warn of an unpermitted parameter
with the message:

> Unpermitted parameter: :attachments. Context: { }

Also, if an application had the setting:

  config.action_controller.action_on_unpermitted_parameters = :raise

it would raise an error, because the attachments are not a permitted
parameter.

This commit also sets `action_on_unpermitted_parameters` to `:raise`
for the action mailbox test suite, so that tests are run in most
restrictive setting available, to prevent future unpermitted parameters
from being passed by conductor actions.

Co-authored-by: Dana Henke <danapalazzo1@gmail.com>
2021-07-02 16:56:16 -04:00
..
controllers Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
dummy Permit attachments in mailbox conductor params 2021-07-02 16:56:16 -04:00
fixtures/files Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
generators
jobs
unit Problem: ActionMailbox uses default ActiveStorage service 2021-06-30 09:33:29 -07:00
test_helper.rb