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 Fix more offences 2018-09-25 13:21:40 -04:00
form_helper Prefer I18n.with_locale 2019-02-21 23:57:45 -05:00
testing Remove query_format argument from resolver 2019-02-26 16:59:04 -08:00
active_model_helper_test.rb Fix field_error_proc wrap form select optgroup and divider option tag 2017-11-09 17:37:06 +01:00
asset_tag_helper_test.rb Remove deprecated image_alt helper 2019-01-17 16:08:31 -05:00
atom_feed_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
capture_helper_test.rb Tighten up the AV::Base constructor 2019-01-29 15:49:40 -08:00
compiled_templates_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
controller_helper_test.rb Merge pull request #29897 from kirs/frozen-actionview 2017-07-24 15:54:08 -04:00
csp_helper_test.rb Allow to pass options to csp_meta_tag 2019-02-16 09:36:37 +09:00
csrf_helper_test.rb Don't expect defined protect_against_forgery? in {token,csrf_meta}_tag 2018-12-27 11:33:54 +02:00
date_helper_i18n_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
date_helper_test.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
dependency_tracker_test.rb Pass source to template handler and deprecate old style handler 2019-02-01 16:19:53 -08:00
digestor_test.rb Make Template::Resolver always cache 2019-03-15 09:20:05 -07:00
erb_util_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
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 Fix unique DOM IDs for collection inputs 2019-01-25 10:04:23 -08:00
form_helper_test.rb Prefer I18n.with_locale 2019-02-21 23:57:45 -05:00
form_options_helper_i18n_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
form_options_helper_test.rb Fix integer regex deprecation warnings for Ruby 2.6.0 (#34728) 2018-12-21 08:19:41 +09:00
form_tag_helper_test.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
html_test.rb Raise exception when building invalid mime type 2019-03-14 11:33:48 -07:00
javascript_helper_test.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
log_subscriber_test.rb Turn lookup context in to a stack, push and pop if formats change 2019-02-11 17:55:59 -08:00
lookup_context_test.rb Don't compact formats 2019-03-19 16:34:12 -07:00
number_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
output_safety_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
partial_iteration_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
record_identifier_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
render_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
resolver_cache_test.rb Split digest cache from details identity cache 2019-02-08 15:13:09 -08:00
resolver_patterns_test.rb Create templates with format=nil 2019-02-26 16:59:04 -08:00
sanitize_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
streaming_render_test.rb Teach DetailsKey how to clear the template cache 2019-02-08 16:13:03 -08:00
tag_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
template_error_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
template_test.rb Expand key word args for ActionView::Template 2019-02-25 16:39:13 -08:00
test_case_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
test_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
text_helper_test.rb Prevent TextHelper#word_wrap from stripping white space on the left 2018-11-19 17:16:34 -05:00
text_test.rb [ci skip] Renamed formats -> format in test after #35406 2019-02-26 08:35:15 +05:30
translation_helper_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
url_helper_test.rb Don't expect defined protect_against_forgery? in {token,csrf_meta}_tag 2018-12-27 11:33:54 +02:00