mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ab34ed8acc
Allow passing a block to the create_inbound_email_from_mail and receive_inbound_email_from_mail test helper methods. When you wanted to test a multipart 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 these methods, we unlock the power of Mail.new to easily create a variety of emails, from multi-part emails, to emails with attachments, and beyond. |
||
---|---|---|
.. | ||
action_mailbox | ||
rails/generators | ||
tasks | ||
action_mailbox.rb |