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/template
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
..
erb
form_helper
testing
active_model_helper_test.rb
asset_tag_helper_test.rb
atom_feed_helper_test.rb
capture_helper_test.rb
compiled_templates_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
controller_helper_test.rb
csp_helper_test.rb
csrf_helper_test.rb
date_helper_i18n_test.rb
date_helper_test.rb
dependency_tracker_test.rb
digestor_test.rb Make Template::Resolver always cache 2019-03-15 09:20:05 -07:00
erb_util_test.rb
fallback_file_system_resolver_test.rb Remove virtual_path from fallback templates 2019-03-18 12:21:28 -07:00
form_collections_helper_test.rb
form_helper_test.rb
form_options_helper_i18n_test.rb
form_options_helper_test.rb
form_tag_helper_test.rb
html_test.rb
javascript_helper_test.rb
log_subscriber_test.rb
lookup_context_test.rb Don't compact formats 2019-03-19 16:34:12 -07:00
number_helper_test.rb
output_safety_helper_test.rb
partial_iteration_test.rb
record_identifier_test.rb
render_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
resolver_cache_test.rb
resolver_patterns_test.rb
sanitize_helper_test.rb
streaming_render_test.rb
tag_helper_test.rb
template_error_test.rb
template_test.rb
test_case_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
test_test.rb
text_helper_test.rb
text_test.rb
translation_helper_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
url_helper_test.rb