@@ -0,0 +1,35 | |||
|
1 | # Redmine - project management software | |
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
|
3 | # | |
|
4 | # This program is free software; you can redistribute it and/or | |
|
5 | # modify it under the terms of the GNU General Public License | |
|
6 | # as published by the Free Software Foundation; either version 2 | |
|
7 | # of the License, or (at your option) any later version. | |
|
8 | # | |
|
9 | # This program is distributed in the hope that it will be useful, | |
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
|
12 | # GNU General Public License for more details. | |
|
13 | # | |
|
14 | # You should have received a copy of the GNU General Public License | |
|
15 | # along with this program; if not, write to the Free Software | |
|
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
|
17 | ||
|
18 | require File.expand_path('../../../test_helper', __FILE__) | |
|
19 | ||
|
20 | class RoutingFilesTest < ActionController::IntegrationTest | |
|
21 | def test_files | |
|
22 | assert_routing( | |
|
23 | { :method => 'get', :path => "/projects/33/files" }, | |
|
24 | { :controller => 'files', :action => 'index', :project_id => '33' } | |
|
25 | ) | |
|
26 | assert_routing( | |
|
27 | { :method => 'get', :path => "/projects/33/files/new" }, | |
|
28 | { :controller => 'files', :action => 'new', :project_id => '33' } | |
|
29 | ) | |
|
30 | assert_routing( | |
|
31 | { :method => 'post', :path => "/projects/33/files" }, | |
|
32 | { :controller => 'files', :action => 'create', :project_id => '33' } | |
|
33 | ) | |
|
34 | end | |
|
35 | end |
@@ -368,14 +368,6 class RoutingTest < ActionController::IntegrationTest | |||
|
368 | 368 | :tab => 'members' } |
|
369 | 369 | ) |
|
370 | 370 | assert_routing( |
|
371 | { :method => 'get', :path => "/projects/33/files" }, | |
|
372 | { :controller => 'files', :action => 'index', :project_id => '33' } | |
|
373 | ) | |
|
374 | assert_routing( | |
|
375 | { :method => 'get', :path => "/projects/33/files/new" }, | |
|
376 | { :controller => 'files', :action => 'new', :project_id => '33' } | |
|
377 | ) | |
|
378 | assert_routing( | |
|
379 | 371 | { :method => 'get', :path => "/projects/33/roadmap" }, |
|
380 | 372 | { :controller => 'versions', :action => 'index', :project_id => '33' } |
|
381 | 373 | ) |
@@ -397,10 +389,6 class RoutingTest < ActionController::IntegrationTest | |||
|
397 | 389 | { :controller => 'projects', :action => 'create', :format => 'xml' } |
|
398 | 390 | ) |
|
399 | 391 | assert_routing( |
|
400 | { :method => 'post', :path => "/projects/33/files" }, | |
|
401 | { :controller => 'files', :action => 'create', :project_id => '33' } | |
|
402 | ) | |
|
403 | assert_routing( | |
|
404 | 392 | { :method => 'post', :path => "/projects/64/archive" }, |
|
405 | 393 | { :controller => 'projects', :action => 'archive', :id => '64' } |
|
406 | 394 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now