Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow easily testing multi-part emails in ActionMailbox #36856

Merged

Commits on Aug 5, 2019

  1. Allow passing a block for inbound mail creation

    When you wanted to test a multi-part email -- for example, an email that
    has both a plaintext part and an HTML part -- there wasn't a way to
    easily build one without a pre-made fixture. By allowing you to pass a
    block to the `create_inbound_email_from_mail` method, we unlock the
    power of `Mail.new` to easily create a variety of emails, from
    multi-part emails, to emails with attachments, and beyond.
    michaelherold committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    e664259 View commit details
    Browse the repository at this point in the history
  2. Allow passing a block for the auto-process helper

    Like with its `create_` counterpart, it is useful to be able to
    immediately process a flexibly-created email with multiple parts,
    attachments, and the like. Allowing the use of the block constructor
    makes this method more flexible and easier to use.
    michaelherold committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    68648ea View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2019

  1. Configuration menu
    Copy the full SHA
    67c2620 View commit details
    Browse the repository at this point in the history