Permalink
Browse files

Add test to avoid regression of 4a86362

  • Loading branch information...
1 parent 4a86362 commit 190dddf2314d394bb5c8435d8aea85a3254b55cb @rafaelfranca rafaelfranca committed Nov 2, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 actionpack/test/dispatch/routing_test.rb
@@ -280,6 +280,8 @@ def self.call(params, request)
scope(':version', :version => /.+/) do
resources :users, :id => /.+?/, :format => /json|xml/
end
+
+ get "products/list"
end
match 'sprockets.js' => ::TestRoutingMapper::SprocketsApp
@@ -1396,6 +1398,14 @@ def test_match_shorthand_inside_namespace
end
end
+ def test_match_shorthand_inside_namespace_with_controller
+ with_test_routes do
+ assert_equal '/api/products/list', api_products_list_path
+ get '/api/products/list'
+ assert_equal 'api/products#list', @response.body
+ end
+ end
+
def test_dynamically_generated_helpers_on_collection_do_not_clobber_resources_url_helper
with_test_routes do
assert_equal '/replies', replies_path

0 comments on commit 190dddf

Please sign in to comment.