diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-09 22:12:06 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-09 22:12:06 -0700 |
commit | 561d9eff0c5702c449a2a0117ad9950ad8842dc2 (patch) | |
tree | 4dcbbf7e59133ec7a6632b235101915df3cc447c /actionpack/test/dispatch | |
parent | ac0280c39dab272710c25d54810b21c10fff9c52 (diff) | |
download | rails-561d9eff0c5702c449a2a0117ad9950ad8842dc2.tar.gz rails-561d9eff0c5702c449a2a0117ad9950ad8842dc2.tar.bz2 rails-561d9eff0c5702c449a2a0117ad9950ad8842dc2.zip |
Add test showing root match in path namespace
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |