##// END OF EJS Templates
Updated documents routing tests....
Jean-Philippe Lang -
r7891:96bccd466673
parent child
Show More
@@ -51,9 +51,9 class RoutingTest < ActionController::IntegrationTest
51 should_route :get, "/documents/22", :controller => 'documents', :action => 'show', :id => '22'
51 should_route :get, "/documents/22", :controller => 'documents', :action => 'show', :id => '22'
52 should_route :get, "/documents/22/edit", :controller => 'documents', :action => 'edit', :id => '22'
52 should_route :get, "/documents/22/edit", :controller => 'documents', :action => 'edit', :id => '22'
53
53
54 should_route :post, "/projects/567/documents/new", :controller => 'documents', :action => 'new', :project_id => '567'
54 should_route :post, "/projects/567/documents", :controller => 'documents', :action => 'create', :project_id => '567'
55 should_route :post, "/documents/567/edit", :controller => 'documents', :action => 'edit', :id => '567'
55 should_route :put, "/documents/22", :controller => 'documents', :action => 'update', :id => '22'
56 should_route :post, "/documents/567/destroy", :controller => 'documents', :action => 'destroy', :id => '567'
56 should_route :delete, "/documents/22", :controller => 'documents', :action => 'destroy', :id => '22'
57 end
57 end
58
58
59 context "groups" do
59 context "groups" do
General Comments 0
You need to be logged in to leave comments. Login now