diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index a95f93537b..38341b5d8c 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -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