rails--rails/actionpack/test/controller
John Hawthorn 9e0c42b0bd Perform details matching on UnboundTemplates
In old versions of Rails, we would rely entirely on what was returned by
Dir.glob to determine the match and sorting of our templates.

Later we switched to building a regex on each search, which allowed us
to perform a much faster glob, find matching templates with the regex,
and then emulate the sort order based on captures from the regex.

Now we have PathParser, which can parse any template's details
accurately from just its filename (not depending on the query being
made).

This commit moves the matching to done on UnboundTemplates, effectively
using details found by the PathParser for both matching and sorting of
templates, and removing the dynamic regex for queries.

This should be faster at boot/after reloads as we're no longer building
a regex and additionally we only need to parse a template's path for
details one time (we can use the same details for matching/sorting in
future queries with different details).
2021-04-20 14:35:40 -07:00
..
api Use binread instead of setting file mode manually 2020-05-13 00:05:32 +01:00
controller_fixtures
metal Change `ActionDispatch::Response#content_type` returning Content-Type header as it is 2019-06-01 09:20:13 +09:00
mime Perform details matching on UnboundTemplates 2021-04-20 14:35:40 -07:00
new_base Remove deprecated support to passing relative paths to `render file:` 2020-10-30 00:25:14 +00:00
parameters chore: fix spelling 2021-04-15 15:49:48 +10:00
request Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
action_pack_assertions_test.rb url -> URL where apt inside actionpack/ 2019-04-01 22:58:02 +05:30
base_test.rb URL helper methods on controllers are public methods 2020-09-16 12:15:24 +09:00
caching_test.rb Auto-correct rubocop offences 2019-11-24 09:54:47 +09:00
content_type_test.rb Fix `content_type=` to not discard extra part 2019-08-23 05:22:53 +09:00
default_url_options_with_before_action_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
filters_test.rb chore: fix spelling 2021-04-15 15:49:48 +10:00
flash_hash_test.rb Replace `assert !` with `assert_not` 2018-04-19 08:11:33 -04:00
flash_test.rb AC::Base#flash is a public method 2020-09-16 12:15:23 +09:00
form_builder_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
helper_test.rb Remove all version checking for older Rubies in tests 2021-02-05 13:21:45 +09:00
http_basic_authentication_test.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
http_digest_authentication_test.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
http_token_authentication_test.rb Fix exception in raw_params method 2021-02-01 16:22:42 +09:00
integration_test.rb Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
live_stream_test.rb fix typo 2021-03-16 23:57:22 +01:00
localized_templates_test.rb Change `ActionDispatch::Response#content_type` returning Content-Type header as it is 2019-06-01 09:20:13 +09:00
log_subscriber_test.rb Handle throwing in controller action in log subscriber 2021-01-24 09:52:27 +01:00
logging_test.rb Add ActionController::Base.log_at 2019-09-24 13:47:34 -04:00
metal_test.rb Shorten inspect on AbstractController::Base 2020-09-05 19:37:31 +02:00
output_escaping_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
parameter_encoding_test.rb Deduplicate some routing data 2020-06-30 18:32:31 +02:00
params_parse_test.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
params_wrapper_test.rb Adds support to wrap aliased attributed in object hash in params wrapper. 2020-01-20 02:45:40 +05:30
permitted_params_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
redirect_test.rb chore: fix spelling 2021-04-15 15:49:48 +10:00
render_js_test.rb Change `ActionDispatch::Response#content_type` to return the full Content-Type header 2020-10-30 00:25:49 +00:00
render_json_test.rb Change `ActionDispatch::Response#content_type` to return the full Content-Type header 2020-10-30 00:25:49 +00:00
render_test.rb Calculate the minimum/maximum from an enumerable's extracted elements 2021-02-12 17:37:53 +01:00
render_xml_test.rb Change `ActionDispatch::Response#content_type` to return the full Content-Type header 2020-10-30 00:25:49 +00:00
renderer_test.rb Remove support for templates with "." 2021-04-14 11:27:11 -07:00
renderers_test.rb Revert "Raise when calling render with invalid options" 2020-10-29 13:49:30 -07:00
request_forgery_protection_test.rb Change `ActionDispatch::Response#content_type` to return the full Content-Type header 2020-10-30 00:25:49 +00:00
required_params_test.rb Add DidYouMean for ParameterMissing 2020-05-19 10:50:24 +02:00
rescue_test.rb Fix handling of ParseError in controllers 2021-03-24 22:53:27 +00:00
resources_test.rb Fix end alignment 2021-03-21 15:46:36 +09:00
route_helpers_test.rb [ci skip] Fix a typo in the comment 2019-12-15 00:36:28 +01:00
routing_test.rb Revert "actionpack: Improve performance by allowing routes with custom regexes in the FSM." 2021-01-05 22:21:53 +00:00
runner_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
send_file_test.rb Use binread instead of setting file mode manually 2020-05-13 00:05:32 +01:00
show_exceptions_test.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
streaming_test.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
test_case_test.rb Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
url_for_integration_test.rb Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the future 2017-12-14 17:30:54 +09:00
url_for_test.rb URL helper methods on controllers are public methods 2020-09-16 12:15:24 +09:00
url_rewriter_test.rb Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the future 2017-12-14 17:30:54 +09:00
webservice_test.rb Enable `Lint/UselessAssignment` cop to avoid unused variable warnings (#34904) 2019-01-09 18:09:01 +09:00