Updated documents routing tests.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8011 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-30 23:12:43 +00:00
parent c3c2a4afe0
commit 96bccd4666
1 changed files with 3 additions and 3 deletions

View File

@ -51,9 +51,9 @@ class RoutingTest < ActionController::IntegrationTest
should_route :get, "/documents/22", :controller => 'documents', :action => 'show', :id => '22'
should_route :get, "/documents/22/edit", :controller => 'documents', :action => 'edit', :id => '22'
should_route :post, "/projects/567/documents/new", :controller => 'documents', :action => 'new', :project_id => '567'
should_route :post, "/documents/567/edit", :controller => 'documents', :action => 'edit', :id => '567'
should_route :post, "/documents/567/destroy", :controller => 'documents', :action => 'destroy', :id => '567'
should_route :post, "/projects/567/documents", :controller => 'documents', :action => 'create', :project_id => '567'
should_route :put, "/documents/22", :controller => 'documents', :action => 'update', :id => '22'
should_route :delete, "/documents/22", :controller => 'documents', :action => 'destroy', :id => '22'
end
context "groups" do