1
0
Fork 0
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:
Jeremy Kemper 2010-04-09 22:12:06 -07:00
parent ac0280c39d
commit 561d9eff0c

View file

@ -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