diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-29 10:55:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-29 10:55:59 -0700 |
commit | 8ed1a562c6293c81c894f3fe55fe88610c4f6caa (patch) | |
tree | 46c5d96d51f5f1d89d0a2802545400d59438fa06 /actionpack/test | |
parent | 7e61a327ce0fdb4b98a76d318ca0b5ffee0be7de (diff) | |
download | rails-8ed1a562c6293c81c894f3fe55fe88610c4f6caa.tar.gz rails-8ed1a562c6293c81c894f3fe55fe88610c4f6caa.tar.bz2 rails-8ed1a562c6293c81c894f3fe55fe88610c4f6caa.zip |
"controllers" should be a valid path name
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 8249403a65..d6477e19bb 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -99,6 +99,16 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end end + def test_namespace_without_controller_segment + draw do + namespace :admin do + get 'hello/:controllers/:action' + end + end + get '/admin/hello/foo/new' + assert_equal 'foo', @request.params["controllers"] + end + def test_session_singleton_resource draw do resource :session do |