1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test
John Hawthorn f35631d466 Prefer render template: in tests
Many tests were using `render file:`, but were only testing the
behaviour of `render template:` (file: just allows more paths/ is less
secure then template:).

The reason for so many `render file:` is probably that they were the old
default.

This commit replaces `render file:` with `render template:` anywhere the
test wasn't specifically interested in using `render file:`.
2019-03-21 13:44:56 -07:00
..
actionpack Pass locals in to the template object on construction 2019-02-25 15:14:53 -08:00
activerecord Pass the template format to the digestor 2019-02-15 17:27:33 -08:00
fixtures Prefer render template: in tests 2019-03-21 13:44:56 -07:00
lib/controller Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
template Prefer render template: in tests 2019-03-21 13:44:56 -07:00
ujs Add regression test for HTML content in rails-ujs 2019-03-17 14:52:14 -04:00
abstract_unit.rb Pass locals in to the template object on construction 2019-02-25 15:14:53 -08:00
active_record_unit.rb Remove deprecated catch-all route in the AV tests 2018-09-24 15:39:15 -07:00