@@ -0,0 +1,33 | |||
|
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 RoutingProjectEnumerationsTest < ActionController::IntegrationTest | |
|
21 | def test_project_enumerations | |
|
22 | assert_routing( | |
|
23 | { :method => 'put', :path => "/projects/64/enumerations" }, | |
|
24 | { :controller => 'project_enumerations', :action => 'update', | |
|
25 | :project_id => '64' } | |
|
26 | ) | |
|
27 | assert_routing( | |
|
28 | { :method => 'delete', :path => "/projects/64/enumerations" }, | |
|
29 | { :controller => 'project_enumerations', :action => 'destroy', | |
|
30 | :project_id => '64' } | |
|
31 | ) | |
|
32 | end | |
|
33 | end |
@@ -70,11 +70,6 class RoutingTest < ActionController::IntegrationTest | |||
|
70 | 70 | { :controller => 'projects', :action => 'unarchive', :id => '64' } |
|
71 | 71 | ) |
|
72 | 72 | assert_routing( |
|
73 | { :method => 'put', :path => "/projects/64/enumerations" }, | |
|
74 | { :controller => 'project_enumerations', :action => 'update', | |
|
75 | :project_id => '64' } | |
|
76 | ) | |
|
77 | assert_routing( | |
|
78 | 73 | { :method => 'put', :path => "/projects/4223" }, |
|
79 | 74 | { :controller => 'projects', :action => 'update', :id => '4223' } |
|
80 | 75 | ) |
@@ -92,11 +87,6 class RoutingTest < ActionController::IntegrationTest | |||
|
92 | 87 | { :controller => 'projects', :action => 'destroy', :id => '1', |
|
93 | 88 | :format => 'xml' } |
|
94 | 89 | ) |
|
95 | assert_routing( | |
|
96 | { :method => 'delete', :path => "/projects/64/enumerations" }, | |
|
97 | { :controller => 'project_enumerations', :action => 'destroy', | |
|
98 | :project_id => '64' } | |
|
99 | ) | |
|
100 | 90 | end |
|
101 | 91 | |
|
102 | 92 | def test_queries |
General Comments 0
You need to be logged in to leave comments.
Login now