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. |
||
---|---|---|
.. | ||
mail_ext | ||
router | ||
base.rb | ||
callbacks.rb | ||
engine.rb | ||
gem_version.rb | ||
mail_ext.rb | ||
relayer.rb | ||
router.rb | ||
routing.rb | ||
test_case.rb | ||
test_helper.rb | ||
version.rb |