summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-14 16:24:07 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-14 16:24:07 +0000
commit1b90703157a182d37496ae4c8e3c430681abddc0 (patch)
treec70d5f5aa7efa398ca8e8d222cda6c1906e7b386 /test/integration
parent41c055363ee4826799b9ffe7d76fd399c89190d3 (diff)
downloadredmine-1b90703157a182d37496ae4c8e3c430681abddc0.tar.gz
redmine-1b90703157a182d37496ae4c8e3c430681abddc0.zip
Refactor: convert FilesController to a restful resource.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4085 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/routing_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb
index 1867a60b0..38c1b2a0e 100644
--- a/test/integration/routing_test.rb
+++ b/test/integration/routing_test.rb
@@ -171,15 +171,15 @@ class RoutingTest < ActionController::IntegrationTest
should_route :get, "/projects/1.xml", :controller => 'projects', :action => 'show', :id => '1', :format => 'xml'
should_route :get, "/projects/4223/settings", :controller => 'projects', :action => 'settings', :id => '4223'
should_route :get, "/projects/4223/settings/members", :controller => 'projects', :action => 'settings', :id => '4223', :tab => 'members'
- should_route :get, "/projects/33/files", :controller => 'files', :action => 'index', :id => '33'
- should_route :get, "/projects/33/files/new", :controller => 'files', :action => 'new', :id => '33'
+ should_route :get, "/projects/33/files", :controller => 'files', :action => 'index', :project_id => '33'
+ should_route :get, "/projects/33/files/new", :controller => 'files', :action => 'new', :project_id => '33'
should_route :get, "/projects/33/roadmap", :controller => 'versions', :action => 'index', :project_id => '33'
should_route :get, "/projects/33/activity", :controller => 'activities', :action => 'index', :id => '33'
should_route :get, "/projects/33/activity.atom", :controller => 'activities', :action => 'index', :id => '33', :format => 'atom'
should_route :post, "/projects", :controller => 'projects', :action => 'create'
should_route :post, "/projects.xml", :controller => 'projects', :action => 'create', :format => 'xml'
- should_route :post, "/projects/33/files/new", :controller => 'files', :action => 'create', :id => '33'
+ should_route :post, "/projects/33/files", :controller => 'files', :action => 'create', :project_id => '33'
should_route :post, "/projects/64/archive", :controller => 'projects', :action => 'archive', :id => '64'
should_route :post, "/projects/64/unarchive", :controller => 'projects', :action => 'unarchive', :id => '64'