@@ -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 | { :controller => 'projects', :action => 'unarchive', :id => '64' } |
|
70 | { :controller => 'projects', :action => 'unarchive', :id => '64' } | |
71 | ) |
|
71 | ) | |
72 | assert_routing( |
|
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 | { :method => 'put', :path => "/projects/4223" }, |
|
73 | { :method => 'put', :path => "/projects/4223" }, | |
79 | { :controller => 'projects', :action => 'update', :id => '4223' } |
|
74 | { :controller => 'projects', :action => 'update', :id => '4223' } | |
80 | ) |
|
75 | ) | |
@@ -92,11 +87,6 class RoutingTest < ActionController::IntegrationTest | |||||
92 | { :controller => 'projects', :action => 'destroy', :id => '1', |
|
87 | { :controller => 'projects', :action => 'destroy', :id => '1', | |
93 | :format => 'xml' } |
|
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 | end |
|
90 | end | |
101 |
|
91 | |||
102 | def test_queries |
|
92 | def test_queries |
General Comments 0
You need to be logged in to leave comments.
Login now