mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
4e6c8045c3
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. |
||
---|---|---|
.. | ||
fixtures | ||
mailers | ||
abstract_unit.rb | ||
assert_select_email_test.rb | ||
asset_host_test.rb | ||
base_test.rb | ||
caching_test.rb | ||
delivery_methods_test.rb | ||
i18n_with_controller_test.rb | ||
legacy_delivery_job_test.rb | ||
log_subscriber_test.rb | ||
mail_helper_test.rb | ||
mail_layout_test.rb | ||
message_delivery_test.rb | ||
parameterized_test.rb | ||
test_case_test.rb | ||
test_helper_test.rb | ||
url_test.rb |