1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test/fixtures/base_mailer
John Hawthorn 4e6c8045c3 Add test and change how format set in ActionMailer
Previously this used self.formats= to set the format which render would
use to find templates. This worked, but was untested, and looked a
little confusing because it was doing the mutation within a loop.

This commit replaces the assignment with passing formats: [format] into
the render call, which makes it more obvious that that's the purpose of
the format. It also adds a test to verify the formats being used.
2019-03-01 14:07:59 -08:00
..
attachment_with_content.erb
attachment_with_hash.html.erb
attachment_with_hash_default_encoding.html.erb
different_layout.html.erb
different_layout.text.erb
email_with_translations.html.erb
explicit_multipart_templates.html.erb
explicit_multipart_templates.text.erb
explicit_multipart_with_one_template.erb
html_only.html.erb
implicit_multipart.html.erb
implicit_multipart.text.erb
implicit_multipart_formats.html.erb
implicit_multipart_formats.text.erb
implicit_with_locale.de-AT.text.erb
implicit_with_locale.de.html.erb
implicit_with_locale.en.html.erb
implicit_with_locale.html.erb
implicit_with_locale.pl.text.erb
implicit_with_locale.text.erb
inline_attachment.html.erb
inline_attachment.text.erb
plain_text_only.text.erb
welcome.erb
welcome_with_headers.html.erb
without_mail_call.erb