Permalink
Browse files

test-case => failing

  • Loading branch information...
1 parent 0d3cb00 commit 330584135f3e4b4f7151869b2b099f25592d6ba9 @senny committed Mar 22, 2013
Showing with 13 additions and 0 deletions.
  1. +13 −0 actionpack/test/dispatch/routing_test.rb
View
13 actionpack/test/dispatch/routing_test.rb
@@ -1173,6 +1173,19 @@ def test_match_shorthand_inside_nested_namespaces_and_scopes_with_controller
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

0 comments on commit 3305841

Please sign in to comment.