Browse files

Add test to avoid regression of 1bfc5b4

  • Loading branch information...
1 parent 1bfc5b4 commit 974467d70d337d4c60414c792e275d367143217b @rafaelfranca rafaelfranca committed Nov 2, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 actionpack/test/dispatch/routing_test.rb
View
8 actionpack/test/dispatch/routing_test.rb
@@ -281,6 +281,8 @@ def self.call(params, request)
scope(':version', :version => /.+/) do
resources :users, :id => /.+?/, :format => /json|xml/
end
+
+ get "products/list"
end
get 'sprockets.js' => ::TestRoutingMapper::SprocketsApp
@@ -1300,6 +1302,12 @@ def test_match_shorthand_inside_namespace
assert_equal 'account#shorthand', @response.body
end
+ def test_match_shorthand_inside_namespace_with_controller
+ assert_equal '/api/products/list', api_products_list_path
+ get '/api/products/list'
+ assert_equal 'api/products#list', @response.body
+ end
+
def test_dynamically_generated_helpers_on_collection_do_not_clobber_resources_url_helper
assert_equal '/replies', replies_path
end

0 comments on commit 974467d

Please sign in to comment.