From 96bccd466673d75ade3a103e7626e82fe295a901 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 30 Nov 2011 23:12:43 +0000 Subject: [PATCH] Updated documents routing tests. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8011 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/routing_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index e163b02d5..14f10bd72 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -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