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
Edouard CHIN 2508c7de26 Calling follow_redirect! does not reset the html_document:
- When making a request to a controller that redirects, `follow_redirect!` would not reset the `html_document` ivar, it only resets the `html_document` ivar from the session (not the runner)
- If one was doing something like this;
  ```ruby
    get '/redirect'
    assert_select 'you are being redirected'
    follow_redirect!
    # html_document is memoized and doesn't get reset
  ```
- To fix the issue we can do the same for any other methods (`get`, `post`...) and define a method in the runner that delegates to the session but clears the html_document_first
- Fixes #29367
2017-06-26 13:42:56 -04:00
..
api Define path with __dir__ 2017-05-23 00:53:51 +03:00
controller_fixtures
metal
mime Define path with __dir__ 2017-05-23 00:53:51 +03:00
new_base Define path with __dir__ 2017-05-23 00:53:51 +03:00
parameters prepare for Minitest 6 2017-06-20 10:33:17 +02:00
request
action_pack_assertions_test.rb Define path with __dir__ 2017-05-23 00:53:51 +03:00
base_test.rb
caching_test.rb Define path with __dir__ 2017-05-23 00:53:51 +03:00
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 Define path with __dir__ 2017-05-23 00:53:51 +03:00
http_basic_authentication_test.rb
http_digest_authentication_test.rb
http_token_authentication_test.rb
integration_test.rb Calling follow_redirect! does not reset the html_document: 2017-06-26 13:42:56 -04:00
live_stream_test.rb Define path with __dir__ 2017-05-23 00:53:51 +03:00
localized_templates_test.rb
log_subscriber_test.rb
metal_test.rb
output_escaping_test.rb
parameter_encoding_test.rb
params_wrapper_test.rb Don't wrap parameters if key already exists 2017-06-24 00:48:34 +01:00
permitted_params_test.rb
redirect_test.rb
render_js_test.rb
render_json_test.rb
render_test.rb Define path with __dir__ 2017-05-23 00:53:51 +03:00
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 Define path with __dir__ 2017-05-23 00:53:51 +03:00
show_exceptions_test.rb
streaming_test.rb
test_case_test.rb Define path with __dir__ 2017-05-23 00:53:51 +03:00
url_for_integration_test.rb
url_for_test.rb
url_rewriter_test.rb
webservice_test.rb