diff options
author | José Valim <jose.valim@gmail.com> | 2010-08-24 14:54:23 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-24 16:58:12 -0300 |
commit | 4a90ecb3adff8426aeddee0594c2b68f408e4af1 (patch) | |
tree | c40c20c76630a4d19f3830fe02ba14f00f3e4568 /actionpack/test | |
parent | edba51cf33fab379d7fd4cc01bd5755fb45c933d (diff) | |
download | rails-4a90ecb3adff8426aeddee0594c2b68f408e4af1.tar.gz rails-4a90ecb3adff8426aeddee0594c2b68f408e4af1.tar.bz2 rails-4a90ecb3adff8426aeddee0594c2b68f408e4af1.zip |
Ensure shortcuts inside resources also generates helpers.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 963fea01d6..292cfc2a02 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -203,9 +203,9 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end resources :customers do - get "recent" => "customers#recent", :as => :recent, :on => :collection - get "profile" => "customers#profile", :as => :profile, :on => :member - post "preview" => "customers#preview", :as => :preview, :on => :new + get "recent" => "customers#recent", :on => :collection + get "profile" => "customers#profile", :on => :member + post "preview" => "customers#preview", :as => :another_preview, :on => :new resource :avatar do get "thumbnail(.:format)" => "avatars#thumbnail", :as => :thumbnail, :on => :member end @@ -1564,7 +1564,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest with_test_routes do assert_equal '/customers/recent', recent_customers_path assert_equal '/customers/1/profile', profile_customer_path(:id => '1') - assert_equal '/customers/new/preview', preview_new_customer_path + assert_equal '/customers/new/preview', another_preview_new_customer_path assert_equal '/customers/1/avatar/thumbnail.jpg', thumbnail_customer_avatar_path(:customer_id => '1', :format => :jpg) assert_equal '/customers/1/invoices/outstanding', outstanding_customer_invoices_path(:customer_id => '1') assert_equal '/customers/1/invoices/2/print', print_customer_invoice_path(:customer_id => '1', :id => '2') |