mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add test showing root match in path namespace
This commit is contained in:
parent
ac0280c39d
commit
561d9eff0c
1 changed files with 4 additions and 0 deletions
|
@ -193,6 +193,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
|
|||
|
||||
namespace :path => :api do
|
||||
resource :me
|
||||
match '/' => 'mes#index'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -963,6 +964,9 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
|
|||
get '/api/me'
|
||||
assert_equal 'mes#show', @response.body
|
||||
assert_equal '/api/me', me_path
|
||||
|
||||
get '/api'
|
||||
assert_equal 'mes#index', @response.body
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue