From 561d9eff0c5702c449a2a0117ad9950ad8842dc2 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 9 Apr 2010 22:12:06 -0700 Subject: Add test showing root match in path namespace --- actionpack/test/dispatch/routing_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/test/dispatch/routing_test.rb') 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 -- cgit v1.2.3