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/dispatch
Ryo Hashimoto 2ea66fc6c5 Fix nested multiple roots
The PR #20940 enabled the use of multiple roots with different constraints
at the top level but unfortunately didn't work when those roots were inside
a namespace and also broke the use of root inside a namespace after a top
level root was defined because the check for the existence of the named route
used the global :root name and not the namespaced name.

This is fixed by using the name_for_action method to expand the :root name to
the full namespaced name. We can pass nil for the second argument as we're not
dealing with resource definitions so don't need to handle the cases for edit
and new routes.

Fixes #26148.
2016-08-29 16:24:51 +01:00
..
request
routing
session
callbacks_test.rb
cookies_test.rb
debug_exceptions_test.rb
exception_wrapper_test.rb
executor_test.rb
header_test.rb
live_response_test.rb
mapper_test.rb
middleware_stack_test.rb
mime_type_test.rb
mount_test.rb
prefix_generation_test.rb
rack_cache_test.rb
reloader_test.rb
request_id_test.rb
request_test.rb
response_test.rb
routing_assertions_test.rb
routing_test.rb
runner_test.rb
show_exceptions_test.rb
ssl_test.rb
static_test.rb
test_request_test.rb
test_response_test.rb
uploaded_file_test.rb
url_generation_test.rb