1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/controller
Aaron Patterson 1581cab9ff
Pass the template format to the digestor
This commit passes the template format to the digestor in order to come
up with a key.  Before this commit, the digestor would depend on the
side effect of the template renderer setting the rendered_format on the
lookup context.  I would like to remove that mutation, so I've changed
this to pass the template format in to the digestor.

I've introduced a new instance variable that will be alive during a
template render.  When the template is being rendered, it pushes the
current template on to a stack, setting `@current_template` to the
template currently being rendered.  When the cache helper asks the
digestor for a key, it uses the format of the template currently on the
stack.
2019-02-15 17:27:33 -08:00
..
api
controller_fixtures
metal
mime
new_base
parameters
request
action_pack_assertions_test.rb
base_test.rb
caching_test.rb
content_type_test.rb
default_url_options_with_before_action_test.rb
filters_test.rb
flash_hash_test.rb
flash_test.rb
force_ssl_test.rb
form_builder_test.rb
helper_test.rb
http_basic_authentication_test.rb
http_digest_authentication_test.rb
http_token_authentication_test.rb
integration_test.rb
live_stream_test.rb
localized_templates_test.rb
log_subscriber_test.rb
metal_test.rb
output_escaping_test.rb
parameter_encoding_test.rb
params_parse_test.rb
params_wrapper_test.rb
permitted_params_test.rb
redirect_test.rb
render_js_test.rb
render_json_test.rb
render_test.rb
render_xml_test.rb
renderer_test.rb
renderers_test.rb
request_forgery_protection_test.rb
required_params_test.rb
rescue_test.rb
resources_test.rb
routing_test.rb
runner_test.rb
send_file_test.rb
show_exceptions_test.rb
streaming_test.rb
test_case_test.rb
url_for_integration_test.rb
url_for_test.rb
url_rewriter_test.rb
webservice_test.rb