aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-03-22 16:25:27 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2013-06-25 05:52:07 +0100
commit55d9176b4a07c5b4f91146d1d38926bee5088b5a (patch)
treed6ba1c870ff93208e865aab68c78a5d149446e7c /actionpack/test/dispatch/routing_test.rb
parentd6bc2fa5a9186874f620df02b630d0e1b1f5f900 (diff)
downloadrails-55d9176b4a07c5b4f91146d1d38926bee5088b5a.tar.gz
rails-55d9176b4a07c5b4f91146d1d38926bee5088b5a.tar.bz2
rails-55d9176b4a07c5b4f91146d1d38926bee5088b5a.zip
test-case => failing
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index 16ba746b9c..8e4339aa0c 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -1253,6 +1253,19 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
assert_equal 'api/v3/products#list', @response.body
end
+ def test_controller_option_with_nesting_and_leading_slash
+ draw do
+ scope '/job', controller: 'job' do
+ scope ':id', action: 'manage_applicant' do
+ get "/active"
+ end
+ end
+ end
+
+ get '/job/5/active'
+ assert_equal 'job#manage_applicant', @response.body
+ end
+
def test_dynamically_generated_helpers_on_collection_do_not_clobber_resources_url_helper
draw do
resources :replies do