Mutare.Swoosh.Attachment (mutare_swoosh v0.1.1)

Copy Markdown View Source

:swoosh_attachment mutates attachment presence and disposition.

Two kinds of mutation, separately ignorable by variant label:

  • whole-attachment removal (delete) — a Swoosh.Email.attachment(email, ...) call collapses to the email (piped stages become identity), and the singular attachment: option in Swoosh.Email.new/1 is dropped. A survivor means no test asserts the attachment exists. (Swoosh.Email.new/1 has no attachments: option, so none is matched.)
  • disposition swap (inline / attachment) — Swoosh exposes disposition on Swoosh.Attachment.new/2 through the :type option; type: :inline and type: :attachment are swapped where that option is present.