diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-02 18:10:46 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-02 18:10:46 -0200 |
commit | 190dddf2314d394bb5c8435d8aea85a3254b55cb (patch) | |
tree | dae989ddb2e638b823e486406fca59a2ef3449be /actionpack | |
parent | 4a8636264dedd5bfafab79b88812478ce333f1f8 (diff) | |
download | rails-190dddf2314d394bb5c8435d8aea85a3254b55cb.tar.gz rails-190dddf2314d394bb5c8435d8aea85a3254b55cb.tar.bz2 rails-190dddf2314d394bb5c8435d8aea85a3254b55cb.zip |
Add test to avoid regression of 4a86362
Diffstat (limited to 'actionpack')
-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 d5caa9634f..e61b4e2d8f 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -280,6 +280,8 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest scope(':version', :version => /.+/) do resources :users, :id => /.+?/, :format => /json|xml/ end + + get "products/list" end match 'sprockets.js' => ::TestRoutingMapper::SprocketsApp @@ -1396,6 +1398,14 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest 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 |