aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-11-02 18:10:46 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-11-02 18:16:27 -0200
commit974467d70d337d4c60414c792e275d367143217b (patch)
tree3bf80bb2c9825ce068cdcc4e89f195e0181df40b /actionpack/test
parent1bfc5b4068238bcd82f0ed78351c97fec39e775a (diff)
downloadrails-974467d70d337d4c60414c792e275d367143217b.tar.gz
rails-974467d70d337d4c60414c792e275d367143217b.tar.bz2
rails-974467d70d337d4c60414c792e275d367143217b.zip
Add test to avoid regression of 1bfc5b4
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/routing_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index 9c23621968..34606512dc 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -281,6 +281,8 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
scope(':version', :version => /.+/) do
resources :users, :id => /.+?/, :format => /json|xml/
end
+
+ get "products/list"
end
get 'sprockets.js' => ::TestRoutingMapper::SprocketsApp
@@ -1300,6 +1302,12 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
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