##// END OF EJS Templates
test: replace "should_route" of "boards" to "assert_routing" at integration/routing_test.rb...
Toshi MARUYAMA -
r8085:08e8567e930b
parent child
Show More
@@ -1,490 +1,515
1 # Redmine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
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
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.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18 require File.expand_path('../../test_helper', __FILE__)
18 require File.expand_path('../../test_helper', __FILE__)
19
19
20 class RoutingTest < ActionController::IntegrationTest
20 class RoutingTest < ActionController::IntegrationTest
21 def test_activities
21 def test_activities
22 assert_routing(
22 assert_routing(
23 { :method => 'get', :path => "/activity" },
23 { :method => 'get', :path => "/activity" },
24 { :controller => 'activities', :action => 'index', :id => nil }
24 { :controller => 'activities', :action => 'index', :id => nil }
25 )
25 )
26 assert_routing(
26 assert_routing(
27 { :method => 'get', :path => "/activity.atom" },
27 { :method => 'get', :path => "/activity.atom" },
28 { :controller => 'activities', :action => 'index', :id => nil, :format => 'atom' }
28 { :controller => 'activities', :action => 'index', :id => nil, :format => 'atom' }
29 )
29 )
30 end
30 end
31
31
32 def test_attachments
32 def test_attachments
33 assert_routing(
33 assert_routing(
34 { :method => 'get', :path => "/attachments/1" },
34 { :method => 'get', :path => "/attachments/1" },
35 { :controller => 'attachments', :action => 'show', :id => '1' }
35 { :controller => 'attachments', :action => 'show', :id => '1' }
36 )
36 )
37 assert_routing(
37 assert_routing(
38 { :method => 'get', :path => "/attachments/1.xml" },
38 { :method => 'get', :path => "/attachments/1.xml" },
39 { :controller => 'attachments', :action => 'show', :id => '1', :format => 'xml' }
39 { :controller => 'attachments', :action => 'show', :id => '1', :format => 'xml' }
40 )
40 )
41 assert_routing(
41 assert_routing(
42 { :method => 'get', :path => "/attachments/1.json" },
42 { :method => 'get', :path => "/attachments/1.json" },
43 { :controller => 'attachments', :action => 'show', :id => '1', :format => 'json' }
43 { :controller => 'attachments', :action => 'show', :id => '1', :format => 'json' }
44 )
44 )
45 assert_routing(
45 assert_routing(
46 { :method => 'get', :path => "/attachments/1/filename.ext" },
46 { :method => 'get', :path => "/attachments/1/filename.ext" },
47 { :controller => 'attachments', :action => 'show', :id => '1',
47 { :controller => 'attachments', :action => 'show', :id => '1',
48 :filename => 'filename.ext' }
48 :filename => 'filename.ext' }
49 )
49 )
50 assert_routing(
50 assert_routing(
51 { :method => 'get', :path => "/attachments/download/1" },
51 { :method => 'get', :path => "/attachments/download/1" },
52 { :controller => 'attachments', :action => 'download', :id => '1' }
52 { :controller => 'attachments', :action => 'download', :id => '1' }
53 )
53 )
54 assert_routing(
54 assert_routing(
55 { :method => 'get', :path => "/attachments/download/1/filename.ext" },
55 { :method => 'get', :path => "/attachments/download/1/filename.ext" },
56 { :controller => 'attachments', :action => 'download', :id => '1',
56 { :controller => 'attachments', :action => 'download', :id => '1',
57 :filename => 'filename.ext' }
57 :filename => 'filename.ext' }
58 )
58 )
59 end
59 end
60
60
61 context "boards" do
61 def test_boards
62 should_route :get, "/projects/world_domination/boards", :controller => 'boards', :action => 'index', :project_id => 'world_domination'
62 assert_routing(
63 should_route :get, "/projects/world_domination/boards/new", :controller => 'boards', :action => 'new', :project_id => 'world_domination'
63 { :method => 'get', :path => "/projects/world_domination/boards" },
64 should_route :get, "/projects/world_domination/boards/44", :controller => 'boards', :action => 'show', :project_id => 'world_domination', :id => '44'
64 { :controller => 'boards', :action => 'index', :project_id => 'world_domination' }
65 should_route :get, "/projects/world_domination/boards/44.atom", :controller => 'boards', :action => 'show', :project_id => 'world_domination', :id => '44', :format => 'atom'
65 )
66 should_route :get, "/projects/world_domination/boards/44/edit", :controller => 'boards', :action => 'edit', :project_id => 'world_domination', :id => '44'
66 assert_routing(
67
67 { :method => 'get', :path => "/projects/world_domination/boards/new" },
68 should_route :post, "/projects/world_domination/boards", :controller => 'boards', :action => 'create', :project_id => 'world_domination'
68 { :controller => 'boards', :action => 'new', :project_id => 'world_domination' }
69 should_route :put, "/projects/world_domination/boards/44", :controller => 'boards', :action => 'update', :project_id => 'world_domination', :id => '44'
69 )
70 should_route :delete, "/projects/world_domination/boards/44", :controller => 'boards', :action => 'destroy', :project_id => 'world_domination', :id => '44'
70 assert_routing(
71
71 { :method => 'get', :path => "/projects/world_domination/boards/44" },
72 { :controller => 'boards', :action => 'show', :project_id => 'world_domination',
73 :id => '44' }
74 )
75 assert_routing(
76 { :method => 'get', :path => "/projects/world_domination/boards/44.atom" },
77 { :controller => 'boards', :action => 'show', :project_id => 'world_domination',
78 :id => '44', :format => 'atom' }
79 )
80 assert_routing(
81 { :method => 'get', :path => "/projects/world_domination/boards/44/edit" },
82 { :controller => 'boards', :action => 'edit', :project_id => 'world_domination',
83 :id => '44' }
84 )
85 assert_routing(
86 { :method => 'post', :path => "/projects/world_domination/boards" },
87 { :controller => 'boards', :action => 'create', :project_id => 'world_domination' }
88 )
89 assert_routing(
90 { :method => 'put', :path => "/projects/world_domination/boards/44" },
91 { :controller => 'boards', :action => 'update', :project_id => 'world_domination', :id => '44' }
92 )
93 assert_routing(
94 { :method => 'delete', :path => "/projects/world_domination/boards/44" },
95 { :controller => 'boards', :action => 'destroy', :project_id => 'world_domination', :id => '44' }
96 )
72 end
97 end
73
98
74 context "custom_fields" do
99 context "custom_fields" do
75 should_route :get, "/custom_fields", :controller => 'custom_fields', :action => 'index'
100 should_route :get, "/custom_fields", :controller => 'custom_fields', :action => 'index'
76 should_route :get, "/custom_fields/new", :controller => 'custom_fields', :action => 'new'
101 should_route :get, "/custom_fields/new", :controller => 'custom_fields', :action => 'new'
77 should_route :post, "/custom_fields", :controller => 'custom_fields', :action => 'create'
102 should_route :post, "/custom_fields", :controller => 'custom_fields', :action => 'create'
78 should_route :get, "/custom_fields/2/edit", :controller => 'custom_fields', :action => 'edit', :id => 2
103 should_route :get, "/custom_fields/2/edit", :controller => 'custom_fields', :action => 'edit', :id => 2
79 should_route :put, "/custom_fields/2", :controller => 'custom_fields', :action => 'update', :id => 2
104 should_route :put, "/custom_fields/2", :controller => 'custom_fields', :action => 'update', :id => 2
80 should_route :delete, "/custom_fields/2", :controller => 'custom_fields', :action => 'destroy', :id => 2
105 should_route :delete, "/custom_fields/2", :controller => 'custom_fields', :action => 'destroy', :id => 2
81 end
106 end
82
107
83 context "documents" do
108 context "documents" do
84 should_route :get, "/projects/567/documents", :controller => 'documents', :action => 'index', :project_id => '567'
109 should_route :get, "/projects/567/documents", :controller => 'documents', :action => 'index', :project_id => '567'
85 should_route :get, "/projects/567/documents/new", :controller => 'documents', :action => 'new', :project_id => '567'
110 should_route :get, "/projects/567/documents/new", :controller => 'documents', :action => 'new', :project_id => '567'
86 should_route :get, "/documents/22", :controller => 'documents', :action => 'show', :id => '22'
111 should_route :get, "/documents/22", :controller => 'documents', :action => 'show', :id => '22'
87 should_route :get, "/documents/22/edit", :controller => 'documents', :action => 'edit', :id => '22'
112 should_route :get, "/documents/22/edit", :controller => 'documents', :action => 'edit', :id => '22'
88
113
89 should_route :post, "/projects/567/documents", :controller => 'documents', :action => 'create', :project_id => '567'
114 should_route :post, "/projects/567/documents", :controller => 'documents', :action => 'create', :project_id => '567'
90 should_route :put, "/documents/22", :controller => 'documents', :action => 'update', :id => '22'
115 should_route :put, "/documents/22", :controller => 'documents', :action => 'update', :id => '22'
91 should_route :delete, "/documents/22", :controller => 'documents', :action => 'destroy', :id => '22'
116 should_route :delete, "/documents/22", :controller => 'documents', :action => 'destroy', :id => '22'
92
117
93 should_route :post, "/documents/22/add_attachment", :controller => 'documents', :action => 'add_attachment', :id => '22'
118 should_route :post, "/documents/22/add_attachment", :controller => 'documents', :action => 'add_attachment', :id => '22'
94 end
119 end
95
120
96 context "roles" do
121 context "roles" do
97 should_route :get, "/enumerations", :controller => 'enumerations', :action => 'index'
122 should_route :get, "/enumerations", :controller => 'enumerations', :action => 'index'
98 should_route :get, "/enumerations/new", :controller => 'enumerations', :action => 'new'
123 should_route :get, "/enumerations/new", :controller => 'enumerations', :action => 'new'
99 should_route :post, "/enumerations", :controller => 'enumerations', :action => 'create'
124 should_route :post, "/enumerations", :controller => 'enumerations', :action => 'create'
100 should_route :get, "/enumerations/2/edit", :controller => 'enumerations', :action => 'edit', :id => 2
125 should_route :get, "/enumerations/2/edit", :controller => 'enumerations', :action => 'edit', :id => 2
101 should_route :put, "/enumerations/2", :controller => 'enumerations', :action => 'update', :id => 2
126 should_route :put, "/enumerations/2", :controller => 'enumerations', :action => 'update', :id => 2
102 should_route :delete, "/enumerations/2", :controller => 'enumerations', :action => 'destroy', :id => 2
127 should_route :delete, "/enumerations/2", :controller => 'enumerations', :action => 'destroy', :id => 2
103 end
128 end
104
129
105 context "groups" do
130 context "groups" do
106 should_route :post, "/groups/567/users", :controller => 'groups', :action => 'add_users', :id => '567'
131 should_route :post, "/groups/567/users", :controller => 'groups', :action => 'add_users', :id => '567'
107 should_route :delete, "/groups/567/users/12", :controller => 'groups', :action => 'remove_user', :id => '567', :user_id => '12'
132 should_route :delete, "/groups/567/users/12", :controller => 'groups', :action => 'remove_user', :id => '567', :user_id => '12'
108 end
133 end
109
134
110 context "issues" do
135 context "issues" do
111 # REST actions
136 # REST actions
112 should_route :get, "/issues", :controller => 'issues', :action => 'index'
137 should_route :get, "/issues", :controller => 'issues', :action => 'index'
113 should_route :get, "/issues.pdf", :controller => 'issues', :action => 'index', :format => 'pdf'
138 should_route :get, "/issues.pdf", :controller => 'issues', :action => 'index', :format => 'pdf'
114 should_route :get, "/issues.atom", :controller => 'issues', :action => 'index', :format => 'atom'
139 should_route :get, "/issues.atom", :controller => 'issues', :action => 'index', :format => 'atom'
115 should_route :get, "/issues.xml", :controller => 'issues', :action => 'index', :format => 'xml'
140 should_route :get, "/issues.xml", :controller => 'issues', :action => 'index', :format => 'xml'
116 should_route :get, "/projects/23/issues", :controller => 'issues', :action => 'index', :project_id => '23'
141 should_route :get, "/projects/23/issues", :controller => 'issues', :action => 'index', :project_id => '23'
117 should_route :get, "/projects/23/issues.pdf", :controller => 'issues', :action => 'index', :project_id => '23', :format => 'pdf'
142 should_route :get, "/projects/23/issues.pdf", :controller => 'issues', :action => 'index', :project_id => '23', :format => 'pdf'
118 should_route :get, "/projects/23/issues.atom", :controller => 'issues', :action => 'index', :project_id => '23', :format => 'atom'
143 should_route :get, "/projects/23/issues.atom", :controller => 'issues', :action => 'index', :project_id => '23', :format => 'atom'
119 should_route :get, "/projects/23/issues.xml", :controller => 'issues', :action => 'index', :project_id => '23', :format => 'xml'
144 should_route :get, "/projects/23/issues.xml", :controller => 'issues', :action => 'index', :project_id => '23', :format => 'xml'
120 should_route :get, "/issues/64", :controller => 'issues', :action => 'show', :id => '64'
145 should_route :get, "/issues/64", :controller => 'issues', :action => 'show', :id => '64'
121 should_route :get, "/issues/64.pdf", :controller => 'issues', :action => 'show', :id => '64', :format => 'pdf'
146 should_route :get, "/issues/64.pdf", :controller => 'issues', :action => 'show', :id => '64', :format => 'pdf'
122 should_route :get, "/issues/64.atom", :controller => 'issues', :action => 'show', :id => '64', :format => 'atom'
147 should_route :get, "/issues/64.atom", :controller => 'issues', :action => 'show', :id => '64', :format => 'atom'
123 should_route :get, "/issues/64.xml", :controller => 'issues', :action => 'show', :id => '64', :format => 'xml'
148 should_route :get, "/issues/64.xml", :controller => 'issues', :action => 'show', :id => '64', :format => 'xml'
124
149
125 should_route :get, "/projects/23/issues/new", :controller => 'issues', :action => 'new', :project_id => '23'
150 should_route :get, "/projects/23/issues/new", :controller => 'issues', :action => 'new', :project_id => '23'
126 # issue form update
151 # issue form update
127 should_route :post, "/projects/23/issues/new", :controller => 'issues', :action => 'new', :project_id => '23'
152 should_route :post, "/projects/23/issues/new", :controller => 'issues', :action => 'new', :project_id => '23'
128 should_route :post, "/projects/23/issues", :controller => 'issues', :action => 'create', :project_id => '23'
153 should_route :post, "/projects/23/issues", :controller => 'issues', :action => 'create', :project_id => '23'
129 should_route :post, "/issues.xml", :controller => 'issues', :action => 'create', :format => 'xml'
154 should_route :post, "/issues.xml", :controller => 'issues', :action => 'create', :format => 'xml'
130
155
131 should_route :get, "/issues/64/edit", :controller => 'issues', :action => 'edit', :id => '64'
156 should_route :get, "/issues/64/edit", :controller => 'issues', :action => 'edit', :id => '64'
132 should_route :put, "/issues/1.xml", :controller => 'issues', :action => 'update', :id => '1', :format => 'xml'
157 should_route :put, "/issues/1.xml", :controller => 'issues', :action => 'update', :id => '1', :format => 'xml'
133
158
134 should_route :delete, "/issues/1.xml", :controller => 'issues', :action => 'destroy', :id => '1', :format => 'xml'
159 should_route :delete, "/issues/1.xml", :controller => 'issues', :action => 'destroy', :id => '1', :format => 'xml'
135
160
136 # Extra actions
161 # Extra actions
137 should_route :get, "/projects/23/issues/64/copy", :controller => 'issues', :action => 'new', :project_id => '23', :copy_from => '64'
162 should_route :get, "/projects/23/issues/64/copy", :controller => 'issues', :action => 'new', :project_id => '23', :copy_from => '64'
138
163
139 should_route :get, "/issues/move/new", :controller => 'issue_moves', :action => 'new'
164 should_route :get, "/issues/move/new", :controller => 'issue_moves', :action => 'new'
140 should_route :post, "/issues/move", :controller => 'issue_moves', :action => 'create'
165 should_route :post, "/issues/move", :controller => 'issue_moves', :action => 'create'
141
166
142 should_route :post, "/issues/1/quoted", :controller => 'journals', :action => 'new', :id => '1'
167 should_route :post, "/issues/1/quoted", :controller => 'journals', :action => 'new', :id => '1'
143
168
144 should_route :get, "/issues/calendar", :controller => 'calendars', :action => 'show'
169 should_route :get, "/issues/calendar", :controller => 'calendars', :action => 'show'
145 should_route :get, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name'
170 should_route :get, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name'
146
171
147 should_route :get, "/issues/gantt", :controller => 'gantts', :action => 'show'
172 should_route :get, "/issues/gantt", :controller => 'gantts', :action => 'show'
148 should_route :get, "/issues/gantt.pdf", :controller => 'gantts', :action => 'show', :format => 'pdf'
173 should_route :get, "/issues/gantt.pdf", :controller => 'gantts', :action => 'show', :format => 'pdf'
149 should_route :get, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name'
174 should_route :get, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name'
150 should_route :get, "/projects/project-name/issues/gantt.pdf", :controller => 'gantts', :action => 'show', :project_id => 'project-name', :format => 'pdf'
175 should_route :get, "/projects/project-name/issues/gantt.pdf", :controller => 'gantts', :action => 'show', :project_id => 'project-name', :format => 'pdf'
151
176
152 should_route :get, "/issues/auto_complete", :controller => 'auto_completes', :action => 'issues'
177 should_route :get, "/issues/auto_complete", :controller => 'auto_completes', :action => 'issues'
153
178
154 should_route :get, "/issues/preview/123", :controller => 'previews', :action => 'issue', :id => '123'
179 should_route :get, "/issues/preview/123", :controller => 'previews', :action => 'issue', :id => '123'
155 should_route :post, "/issues/preview/123", :controller => 'previews', :action => 'issue', :id => '123'
180 should_route :post, "/issues/preview/123", :controller => 'previews', :action => 'issue', :id => '123'
156 should_route :get, "/issues/context_menu", :controller => 'context_menus', :action => 'issues'
181 should_route :get, "/issues/context_menu", :controller => 'context_menus', :action => 'issues'
157 should_route :post, "/issues/context_menu", :controller => 'context_menus', :action => 'issues'
182 should_route :post, "/issues/context_menu", :controller => 'context_menus', :action => 'issues'
158
183
159 should_route :get, "/issues/changes", :controller => 'journals', :action => 'index'
184 should_route :get, "/issues/changes", :controller => 'journals', :action => 'index'
160
185
161 should_route :get, "/issues/bulk_edit", :controller => 'issues', :action => 'bulk_edit'
186 should_route :get, "/issues/bulk_edit", :controller => 'issues', :action => 'bulk_edit'
162 should_route :post, "/issues/bulk_update", :controller => 'issues', :action => 'bulk_update'
187 should_route :post, "/issues/bulk_update", :controller => 'issues', :action => 'bulk_update'
163 end
188 end
164
189
165 context "issue categories" do
190 context "issue categories" do
166 should_route :get, "/projects/foo/issue_categories", :controller => 'issue_categories', :action => 'index', :project_id => 'foo'
191 should_route :get, "/projects/foo/issue_categories", :controller => 'issue_categories', :action => 'index', :project_id => 'foo'
167 should_route :get, "/projects/foo/issue_categories.xml", :controller => 'issue_categories', :action => 'index', :project_id => 'foo', :format => 'xml'
192 should_route :get, "/projects/foo/issue_categories.xml", :controller => 'issue_categories', :action => 'index', :project_id => 'foo', :format => 'xml'
168 should_route :get, "/projects/foo/issue_categories.json", :controller => 'issue_categories', :action => 'index', :project_id => 'foo', :format => 'json'
193 should_route :get, "/projects/foo/issue_categories.json", :controller => 'issue_categories', :action => 'index', :project_id => 'foo', :format => 'json'
169
194
170 should_route :get, "/projects/foo/issue_categories/new", :controller => 'issue_categories', :action => 'new', :project_id => 'foo'
195 should_route :get, "/projects/foo/issue_categories/new", :controller => 'issue_categories', :action => 'new', :project_id => 'foo'
171
196
172 should_route :post, "/projects/foo/issue_categories", :controller => 'issue_categories', :action => 'create', :project_id => 'foo'
197 should_route :post, "/projects/foo/issue_categories", :controller => 'issue_categories', :action => 'create', :project_id => 'foo'
173 should_route :post, "/projects/foo/issue_categories.xml", :controller => 'issue_categories', :action => 'create', :project_id => 'foo', :format => 'xml'
198 should_route :post, "/projects/foo/issue_categories.xml", :controller => 'issue_categories', :action => 'create', :project_id => 'foo', :format => 'xml'
174 should_route :post, "/projects/foo/issue_categories.json", :controller => 'issue_categories', :action => 'create', :project_id => 'foo', :format => 'json'
199 should_route :post, "/projects/foo/issue_categories.json", :controller => 'issue_categories', :action => 'create', :project_id => 'foo', :format => 'json'
175
200
176 should_route :get, "/issue_categories/1", :controller => 'issue_categories', :action => 'show', :id => '1'
201 should_route :get, "/issue_categories/1", :controller => 'issue_categories', :action => 'show', :id => '1'
177 should_route :get, "/issue_categories/1.xml", :controller => 'issue_categories', :action => 'show', :id => '1', :format => 'xml'
202 should_route :get, "/issue_categories/1.xml", :controller => 'issue_categories', :action => 'show', :id => '1', :format => 'xml'
178 should_route :get, "/issue_categories/1.json", :controller => 'issue_categories', :action => 'show', :id => '1', :format => 'json'
203 should_route :get, "/issue_categories/1.json", :controller => 'issue_categories', :action => 'show', :id => '1', :format => 'json'
179
204
180 should_route :get, "/issue_categories/1/edit", :controller => 'issue_categories', :action => 'edit', :id => '1'
205 should_route :get, "/issue_categories/1/edit", :controller => 'issue_categories', :action => 'edit', :id => '1'
181
206
182 should_route :put, "/issue_categories/1", :controller => 'issue_categories', :action => 'update', :id => '1'
207 should_route :put, "/issue_categories/1", :controller => 'issue_categories', :action => 'update', :id => '1'
183 should_route :put, "/issue_categories/1.xml", :controller => 'issue_categories', :action => 'update', :id => '1', :format => 'xml'
208 should_route :put, "/issue_categories/1.xml", :controller => 'issue_categories', :action => 'update', :id => '1', :format => 'xml'
184 should_route :put, "/issue_categories/1.json", :controller => 'issue_categories', :action => 'update', :id => '1', :format => 'json'
209 should_route :put, "/issue_categories/1.json", :controller => 'issue_categories', :action => 'update', :id => '1', :format => 'json'
185
210
186 should_route :delete, "/issue_categories/1", :controller => 'issue_categories', :action => 'destroy', :id => '1'
211 should_route :delete, "/issue_categories/1", :controller => 'issue_categories', :action => 'destroy', :id => '1'
187 should_route :delete, "/issue_categories/1.xml", :controller => 'issue_categories', :action => 'destroy', :id => '1', :format => 'xml'
212 should_route :delete, "/issue_categories/1.xml", :controller => 'issue_categories', :action => 'destroy', :id => '1', :format => 'xml'
188 should_route :delete, "/issue_categories/1.json", :controller => 'issue_categories', :action => 'destroy', :id => '1', :format => 'json'
213 should_route :delete, "/issue_categories/1.json", :controller => 'issue_categories', :action => 'destroy', :id => '1', :format => 'json'
189 end
214 end
190
215
191 context "issue relations" do
216 context "issue relations" do
192 should_route :get, "/issues/1/relations", :controller => 'issue_relations', :action => 'index', :issue_id => '1'
217 should_route :get, "/issues/1/relations", :controller => 'issue_relations', :action => 'index', :issue_id => '1'
193 should_route :get, "/issues/1/relations.xml", :controller => 'issue_relations', :action => 'index', :issue_id => '1', :format => 'xml'
218 should_route :get, "/issues/1/relations.xml", :controller => 'issue_relations', :action => 'index', :issue_id => '1', :format => 'xml'
194 should_route :get, "/issues/1/relations.json", :controller => 'issue_relations', :action => 'index', :issue_id => '1', :format => 'json'
219 should_route :get, "/issues/1/relations.json", :controller => 'issue_relations', :action => 'index', :issue_id => '1', :format => 'json'
195
220
196 should_route :post, "/issues/1/relations", :controller => 'issue_relations', :action => 'create', :issue_id => '1'
221 should_route :post, "/issues/1/relations", :controller => 'issue_relations', :action => 'create', :issue_id => '1'
197 should_route :post, "/issues/1/relations.xml", :controller => 'issue_relations', :action => 'create', :issue_id => '1', :format => 'xml'
222 should_route :post, "/issues/1/relations.xml", :controller => 'issue_relations', :action => 'create', :issue_id => '1', :format => 'xml'
198 should_route :post, "/issues/1/relations.json", :controller => 'issue_relations', :action => 'create', :issue_id => '1', :format => 'json'
223 should_route :post, "/issues/1/relations.json", :controller => 'issue_relations', :action => 'create', :issue_id => '1', :format => 'json'
199
224
200 should_route :get, "/relations/23", :controller => 'issue_relations', :action => 'show', :id => '23'
225 should_route :get, "/relations/23", :controller => 'issue_relations', :action => 'show', :id => '23'
201 should_route :get, "/relations/23.xml", :controller => 'issue_relations', :action => 'show', :id => '23', :format => 'xml'
226 should_route :get, "/relations/23.xml", :controller => 'issue_relations', :action => 'show', :id => '23', :format => 'xml'
202 should_route :get, "/relations/23.json", :controller => 'issue_relations', :action => 'show', :id => '23', :format => 'json'
227 should_route :get, "/relations/23.json", :controller => 'issue_relations', :action => 'show', :id => '23', :format => 'json'
203
228
204 should_route :delete, "/relations/23", :controller => 'issue_relations', :action => 'destroy', :id => '23'
229 should_route :delete, "/relations/23", :controller => 'issue_relations', :action => 'destroy', :id => '23'
205 should_route :delete, "/relations/23.xml", :controller => 'issue_relations', :action => 'destroy', :id => '23', :format => 'xml'
230 should_route :delete, "/relations/23.xml", :controller => 'issue_relations', :action => 'destroy', :id => '23', :format => 'xml'
206 should_route :delete, "/relations/23.json", :controller => 'issue_relations', :action => 'destroy', :id => '23', :format => 'json'
231 should_route :delete, "/relations/23.json", :controller => 'issue_relations', :action => 'destroy', :id => '23', :format => 'json'
207 end
232 end
208
233
209 context "issue reports" do
234 context "issue reports" do
210 should_route :get, "/projects/567/issues/report", :controller => 'reports', :action => 'issue_report', :id => '567'
235 should_route :get, "/projects/567/issues/report", :controller => 'reports', :action => 'issue_report', :id => '567'
211 should_route :get, "/projects/567/issues/report/assigned_to", :controller => 'reports', :action => 'issue_report_details', :id => '567', :detail => 'assigned_to'
236 should_route :get, "/projects/567/issues/report/assigned_to", :controller => 'reports', :action => 'issue_report_details', :id => '567', :detail => 'assigned_to'
212 end
237 end
213
238
214 context "members" do
239 context "members" do
215 should_route :post, "/projects/5234/members/new", :controller => 'members', :action => 'new', :id => '5234'
240 should_route :post, "/projects/5234/members/new", :controller => 'members', :action => 'new', :id => '5234'
216 end
241 end
217
242
218 context "messages" do
243 context "messages" do
219 should_route :get, "/boards/22/topics/2", :controller => 'messages', :action => 'show', :id => '2', :board_id => '22'
244 should_route :get, "/boards/22/topics/2", :controller => 'messages', :action => 'show', :id => '2', :board_id => '22'
220 should_route :get, "/boards/lala/topics/new", :controller => 'messages', :action => 'new', :board_id => 'lala'
245 should_route :get, "/boards/lala/topics/new", :controller => 'messages', :action => 'new', :board_id => 'lala'
221 should_route :get, "/boards/lala/topics/22/edit", :controller => 'messages', :action => 'edit', :id => '22', :board_id => 'lala'
246 should_route :get, "/boards/lala/topics/22/edit", :controller => 'messages', :action => 'edit', :id => '22', :board_id => 'lala'
222
247
223 should_route :post, "/boards/lala/topics/new", :controller => 'messages', :action => 'new', :board_id => 'lala'
248 should_route :post, "/boards/lala/topics/new", :controller => 'messages', :action => 'new', :board_id => 'lala'
224 should_route :post, "/boards/lala/topics/22/edit", :controller => 'messages', :action => 'edit', :id => '22', :board_id => 'lala'
249 should_route :post, "/boards/lala/topics/22/edit", :controller => 'messages', :action => 'edit', :id => '22', :board_id => 'lala'
225 should_route :post, "/boards/22/topics/555/replies", :controller => 'messages', :action => 'reply', :id => '555', :board_id => '22'
250 should_route :post, "/boards/22/topics/555/replies", :controller => 'messages', :action => 'reply', :id => '555', :board_id => '22'
226 should_route :post, "/boards/22/topics/555/destroy", :controller => 'messages', :action => 'destroy', :id => '555', :board_id => '22'
251 should_route :post, "/boards/22/topics/555/destroy", :controller => 'messages', :action => 'destroy', :id => '555', :board_id => '22'
227 end
252 end
228
253
229 context "news" do
254 context "news" do
230 should_route :get, "/news", :controller => 'news', :action => 'index'
255 should_route :get, "/news", :controller => 'news', :action => 'index'
231 should_route :get, "/news.atom", :controller => 'news', :action => 'index', :format => 'atom'
256 should_route :get, "/news.atom", :controller => 'news', :action => 'index', :format => 'atom'
232 should_route :get, "/news.xml", :controller => 'news', :action => 'index', :format => 'xml'
257 should_route :get, "/news.xml", :controller => 'news', :action => 'index', :format => 'xml'
233 should_route :get, "/news.json", :controller => 'news', :action => 'index', :format => 'json'
258 should_route :get, "/news.json", :controller => 'news', :action => 'index', :format => 'json'
234 should_route :get, "/projects/567/news", :controller => 'news', :action => 'index', :project_id => '567'
259 should_route :get, "/projects/567/news", :controller => 'news', :action => 'index', :project_id => '567'
235 should_route :get, "/projects/567/news.atom", :controller => 'news', :action => 'index', :format => 'atom', :project_id => '567'
260 should_route :get, "/projects/567/news.atom", :controller => 'news', :action => 'index', :format => 'atom', :project_id => '567'
236 should_route :get, "/projects/567/news.xml", :controller => 'news', :action => 'index', :format => 'xml', :project_id => '567'
261 should_route :get, "/projects/567/news.xml", :controller => 'news', :action => 'index', :format => 'xml', :project_id => '567'
237 should_route :get, "/projects/567/news.json", :controller => 'news', :action => 'index', :format => 'json', :project_id => '567'
262 should_route :get, "/projects/567/news.json", :controller => 'news', :action => 'index', :format => 'json', :project_id => '567'
238 should_route :get, "/news/2", :controller => 'news', :action => 'show', :id => '2'
263 should_route :get, "/news/2", :controller => 'news', :action => 'show', :id => '2'
239 should_route :get, "/projects/567/news/new", :controller => 'news', :action => 'new', :project_id => '567'
264 should_route :get, "/projects/567/news/new", :controller => 'news', :action => 'new', :project_id => '567'
240 should_route :get, "/news/234", :controller => 'news', :action => 'show', :id => '234'
265 should_route :get, "/news/234", :controller => 'news', :action => 'show', :id => '234'
241 should_route :get, "/news/567/edit", :controller => 'news', :action => 'edit', :id => '567'
266 should_route :get, "/news/567/edit", :controller => 'news', :action => 'edit', :id => '567'
242 should_route :get, "/news/preview", :controller => 'previews', :action => 'news'
267 should_route :get, "/news/preview", :controller => 'previews', :action => 'news'
243
268
244 should_route :post, "/projects/567/news", :controller => 'news', :action => 'create', :project_id => '567'
269 should_route :post, "/projects/567/news", :controller => 'news', :action => 'create', :project_id => '567'
245 should_route :post, "/news/567/comments", :controller => 'comments', :action => 'create', :id => '567'
270 should_route :post, "/news/567/comments", :controller => 'comments', :action => 'create', :id => '567'
246
271
247 should_route :put, "/news/567", :controller => 'news', :action => 'update', :id => '567'
272 should_route :put, "/news/567", :controller => 'news', :action => 'update', :id => '567'
248
273
249 should_route :delete, "/news/567", :controller => 'news', :action => 'destroy', :id => '567'
274 should_route :delete, "/news/567", :controller => 'news', :action => 'destroy', :id => '567'
250 should_route :delete, "/news/567/comments/15", :controller => 'comments', :action => 'destroy', :id => '567', :comment_id => '15'
275 should_route :delete, "/news/567/comments/15", :controller => 'comments', :action => 'destroy', :id => '567', :comment_id => '15'
251 end
276 end
252
277
253 context "projects" do
278 context "projects" do
254 should_route :get, "/projects", :controller => 'projects', :action => 'index'
279 should_route :get, "/projects", :controller => 'projects', :action => 'index'
255 should_route :get, "/projects.atom", :controller => 'projects', :action => 'index', :format => 'atom'
280 should_route :get, "/projects.atom", :controller => 'projects', :action => 'index', :format => 'atom'
256 should_route :get, "/projects.xml", :controller => 'projects', :action => 'index', :format => 'xml'
281 should_route :get, "/projects.xml", :controller => 'projects', :action => 'index', :format => 'xml'
257 should_route :get, "/projects/new", :controller => 'projects', :action => 'new'
282 should_route :get, "/projects/new", :controller => 'projects', :action => 'new'
258 should_route :get, "/projects/test", :controller => 'projects', :action => 'show', :id => 'test'
283 should_route :get, "/projects/test", :controller => 'projects', :action => 'show', :id => 'test'
259 should_route :get, "/projects/1.xml", :controller => 'projects', :action => 'show', :id => '1', :format => 'xml'
284 should_route :get, "/projects/1.xml", :controller => 'projects', :action => 'show', :id => '1', :format => 'xml'
260 should_route :get, "/projects/4223/settings", :controller => 'projects', :action => 'settings', :id => '4223'
285 should_route :get, "/projects/4223/settings", :controller => 'projects', :action => 'settings', :id => '4223'
261 should_route :get, "/projects/4223/settings/members", :controller => 'projects', :action => 'settings', :id => '4223', :tab => 'members'
286 should_route :get, "/projects/4223/settings/members", :controller => 'projects', :action => 'settings', :id => '4223', :tab => 'members'
262 should_route :get, "/projects/33/files", :controller => 'files', :action => 'index', :project_id => '33'
287 should_route :get, "/projects/33/files", :controller => 'files', :action => 'index', :project_id => '33'
263 should_route :get, "/projects/33/files/new", :controller => 'files', :action => 'new', :project_id => '33'
288 should_route :get, "/projects/33/files/new", :controller => 'files', :action => 'new', :project_id => '33'
264 should_route :get, "/projects/33/roadmap", :controller => 'versions', :action => 'index', :project_id => '33'
289 should_route :get, "/projects/33/roadmap", :controller => 'versions', :action => 'index', :project_id => '33'
265 should_route :get, "/projects/33/activity", :controller => 'activities', :action => 'index', :id => '33'
290 should_route :get, "/projects/33/activity", :controller => 'activities', :action => 'index', :id => '33'
266 should_route :get, "/projects/33/activity.atom", :controller => 'activities', :action => 'index', :id => '33', :format => 'atom'
291 should_route :get, "/projects/33/activity.atom", :controller => 'activities', :action => 'index', :id => '33', :format => 'atom'
267
292
268 should_route :post, "/projects", :controller => 'projects', :action => 'create'
293 should_route :post, "/projects", :controller => 'projects', :action => 'create'
269 should_route :post, "/projects.xml", :controller => 'projects', :action => 'create', :format => 'xml'
294 should_route :post, "/projects.xml", :controller => 'projects', :action => 'create', :format => 'xml'
270 should_route :post, "/projects/33/files", :controller => 'files', :action => 'create', :project_id => '33'
295 should_route :post, "/projects/33/files", :controller => 'files', :action => 'create', :project_id => '33'
271 should_route :post, "/projects/64/archive", :controller => 'projects', :action => 'archive', :id => '64'
296 should_route :post, "/projects/64/archive", :controller => 'projects', :action => 'archive', :id => '64'
272 should_route :post, "/projects/64/unarchive", :controller => 'projects', :action => 'unarchive', :id => '64'
297 should_route :post, "/projects/64/unarchive", :controller => 'projects', :action => 'unarchive', :id => '64'
273
298
274 should_route :put, "/projects/64/enumerations", :controller => 'project_enumerations', :action => 'update', :project_id => '64'
299 should_route :put, "/projects/64/enumerations", :controller => 'project_enumerations', :action => 'update', :project_id => '64'
275 should_route :put, "/projects/4223", :controller => 'projects', :action => 'update', :id => '4223'
300 should_route :put, "/projects/4223", :controller => 'projects', :action => 'update', :id => '4223'
276 should_route :put, "/projects/1.xml", :controller => 'projects', :action => 'update', :id => '1', :format => 'xml'
301 should_route :put, "/projects/1.xml", :controller => 'projects', :action => 'update', :id => '1', :format => 'xml'
277
302
278 should_route :delete, "/projects/64", :controller => 'projects', :action => 'destroy', :id => '64'
303 should_route :delete, "/projects/64", :controller => 'projects', :action => 'destroy', :id => '64'
279 should_route :delete, "/projects/1.xml", :controller => 'projects', :action => 'destroy', :id => '1', :format => 'xml'
304 should_route :delete, "/projects/1.xml", :controller => 'projects', :action => 'destroy', :id => '1', :format => 'xml'
280 should_route :delete, "/projects/64/enumerations", :controller => 'project_enumerations', :action => 'destroy', :project_id => '64'
305 should_route :delete, "/projects/64/enumerations", :controller => 'project_enumerations', :action => 'destroy', :project_id => '64'
281 end
306 end
282
307
283 context "queries" do
308 context "queries" do
284 should_route :get, "/queries.xml", :controller => 'queries', :action => 'index', :format => 'xml'
309 should_route :get, "/queries.xml", :controller => 'queries', :action => 'index', :format => 'xml'
285 should_route :get, "/queries.json", :controller => 'queries', :action => 'index', :format => 'json'
310 should_route :get, "/queries.json", :controller => 'queries', :action => 'index', :format => 'json'
286
311
287 should_route :get, "/queries/new", :controller => 'queries', :action => 'new'
312 should_route :get, "/queries/new", :controller => 'queries', :action => 'new'
288 should_route :get, "/projects/redmine/queries/new", :controller => 'queries', :action => 'new', :project_id => 'redmine'
313 should_route :get, "/projects/redmine/queries/new", :controller => 'queries', :action => 'new', :project_id => 'redmine'
289
314
290 should_route :post, "/queries", :controller => 'queries', :action => 'create'
315 should_route :post, "/queries", :controller => 'queries', :action => 'create'
291 should_route :post, "/projects/redmine/queries", :controller => 'queries', :action => 'create', :project_id => 'redmine'
316 should_route :post, "/projects/redmine/queries", :controller => 'queries', :action => 'create', :project_id => 'redmine'
292
317
293 should_route :get, "/queries/1/edit", :controller => 'queries', :action => 'edit', :id => '1'
318 should_route :get, "/queries/1/edit", :controller => 'queries', :action => 'edit', :id => '1'
294
319
295 should_route :put, "/queries/1", :controller => 'queries', :action => 'update', :id => '1'
320 should_route :put, "/queries/1", :controller => 'queries', :action => 'update', :id => '1'
296
321
297 should_route :delete, "/queries/1", :controller => 'queries', :action => 'destroy', :id => '1'
322 should_route :delete, "/queries/1", :controller => 'queries', :action => 'destroy', :id => '1'
298 end
323 end
299
324
300 context "repositories" do
325 context "repositories" do
301 should_route :get, "/projects/redmine/repository", :controller => 'repositories', :action => 'show', :id => 'redmine'
326 should_route :get, "/projects/redmine/repository", :controller => 'repositories', :action => 'show', :id => 'redmine'
302 should_route :get, "/projects/redmine/repository/edit", :controller => 'repositories', :action => 'edit', :id => 'redmine'
327 should_route :get, "/projects/redmine/repository/edit", :controller => 'repositories', :action => 'edit', :id => 'redmine'
303 should_route :get, "/projects/redmine/repository/revisions", :controller => 'repositories', :action => 'revisions', :id => 'redmine'
328 should_route :get, "/projects/redmine/repository/revisions", :controller => 'repositories', :action => 'revisions', :id => 'redmine'
304 should_route :get, "/projects/redmine/repository/revisions.atom", :controller => 'repositories', :action => 'revisions', :id => 'redmine', :format => 'atom'
329 should_route :get, "/projects/redmine/repository/revisions.atom", :controller => 'repositories', :action => 'revisions', :id => 'redmine', :format => 'atom'
305 should_route :get, "/projects/redmine/repository/revisions/2457", :controller => 'repositories', :action => 'revision', :id => 'redmine', :rev => '2457'
330 should_route :get, "/projects/redmine/repository/revisions/2457", :controller => 'repositories', :action => 'revision', :id => 'redmine', :rev => '2457'
306 should_route :get, "/projects/redmine/repository/revisions/2457/diff", :controller => 'repositories', :action => 'diff', :id => 'redmine', :rev => '2457'
331 should_route :get, "/projects/redmine/repository/revisions/2457/diff", :controller => 'repositories', :action => 'diff', :id => 'redmine', :rev => '2457'
307 should_route :get, "/projects/redmine/repository/revisions/2457/diff.diff", :controller => 'repositories', :action => 'diff', :id => 'redmine', :rev => '2457', :format => 'diff'
332 should_route :get, "/projects/redmine/repository/revisions/2457/diff.diff", :controller => 'repositories', :action => 'diff', :id => 'redmine', :rev => '2457', :format => 'diff'
308 should_route :get, "/projects/redmine/repository/diff/path/to/file.c", :controller => 'repositories', :action => 'diff', :id => 'redmine', :path => %w[path to file.c]
333 should_route :get, "/projects/redmine/repository/diff/path/to/file.c", :controller => 'repositories', :action => 'diff', :id => 'redmine', :path => %w[path to file.c]
309 should_route :get, "/projects/redmine/repository/revisions/2/diff/path/to/file.c", :controller => 'repositories', :action => 'diff', :id => 'redmine', :path => %w[path to file.c], :rev => '2'
334 should_route :get, "/projects/redmine/repository/revisions/2/diff/path/to/file.c", :controller => 'repositories', :action => 'diff', :id => 'redmine', :path => %w[path to file.c], :rev => '2'
310 should_route :get, "/projects/redmine/repository/browse/path/to/file.c", :controller => 'repositories', :action => 'browse', :id => 'redmine', :path => %w[path to file.c]
335 should_route :get, "/projects/redmine/repository/browse/path/to/file.c", :controller => 'repositories', :action => 'browse', :id => 'redmine', :path => %w[path to file.c]
311 should_route :get, "/projects/redmine/repository/entry/path/to/file.c", :controller => 'repositories', :action => 'entry', :id => 'redmine', :path => %w[path to file.c]
336 should_route :get, "/projects/redmine/repository/entry/path/to/file.c", :controller => 'repositories', :action => 'entry', :id => 'redmine', :path => %w[path to file.c]
312 should_route :get, "/projects/redmine/repository/revisions/2/entry/path/to/file.c", :controller => 'repositories', :action => 'entry', :id => 'redmine', :path => %w[path to file.c], :rev => '2'
337 should_route :get, "/projects/redmine/repository/revisions/2/entry/path/to/file.c", :controller => 'repositories', :action => 'entry', :id => 'redmine', :path => %w[path to file.c], :rev => '2'
313 should_route :get, "/projects/redmine/repository/raw/path/to/file.c", :controller => 'repositories', :action => 'entry', :id => 'redmine', :path => %w[path to file.c], :format => 'raw'
338 should_route :get, "/projects/redmine/repository/raw/path/to/file.c", :controller => 'repositories', :action => 'entry', :id => 'redmine', :path => %w[path to file.c], :format => 'raw'
314 should_route :get, "/projects/redmine/repository/revisions/2/raw/path/to/file.c", :controller => 'repositories', :action => 'entry', :id => 'redmine', :path => %w[path to file.c], :rev => '2', :format => 'raw'
339 should_route :get, "/projects/redmine/repository/revisions/2/raw/path/to/file.c", :controller => 'repositories', :action => 'entry', :id => 'redmine', :path => %w[path to file.c], :rev => '2', :format => 'raw'
315 should_route :get, "/projects/redmine/repository/annotate/path/to/file.c", :controller => 'repositories', :action => 'annotate', :id => 'redmine', :path => %w[path to file.c]
340 should_route :get, "/projects/redmine/repository/annotate/path/to/file.c", :controller => 'repositories', :action => 'annotate', :id => 'redmine', :path => %w[path to file.c]
316 should_route :get, "/projects/redmine/repository/changes/path/to/file.c", :controller => 'repositories', :action => 'changes', :id => 'redmine', :path => %w[path to file.c]
341 should_route :get, "/projects/redmine/repository/changes/path/to/file.c", :controller => 'repositories', :action => 'changes', :id => 'redmine', :path => %w[path to file.c]
317 should_route :get, "/projects/redmine/repository/statistics", :controller => 'repositories', :action => 'stats', :id => 'redmine'
342 should_route :get, "/projects/redmine/repository/statistics", :controller => 'repositories', :action => 'stats', :id => 'redmine'
318
343
319 should_route :post, "/projects/redmine/repository/edit", :controller => 'repositories', :action => 'edit', :id => 'redmine'
344 should_route :post, "/projects/redmine/repository/edit", :controller => 'repositories', :action => 'edit', :id => 'redmine'
320 end
345 end
321
346
322 context "roles" do
347 context "roles" do
323 should_route :get, "/roles", :controller => 'roles', :action => 'index'
348 should_route :get, "/roles", :controller => 'roles', :action => 'index'
324 should_route :get, "/roles/new", :controller => 'roles', :action => 'new'
349 should_route :get, "/roles/new", :controller => 'roles', :action => 'new'
325 should_route :post, "/roles", :controller => 'roles', :action => 'create'
350 should_route :post, "/roles", :controller => 'roles', :action => 'create'
326 should_route :get, "/roles/2/edit", :controller => 'roles', :action => 'edit', :id => 2
351 should_route :get, "/roles/2/edit", :controller => 'roles', :action => 'edit', :id => 2
327 should_route :put, "/roles/2", :controller => 'roles', :action => 'update', :id => 2
352 should_route :put, "/roles/2", :controller => 'roles', :action => 'update', :id => 2
328 should_route :delete, "/roles/2", :controller => 'roles', :action => 'destroy', :id => 2
353 should_route :delete, "/roles/2", :controller => 'roles', :action => 'destroy', :id => 2
329 should_route :get, "/roles/permissions", :controller => 'roles', :action => 'permissions'
354 should_route :get, "/roles/permissions", :controller => 'roles', :action => 'permissions'
330 should_route :post, "/roles/permissions", :controller => 'roles', :action => 'permissions'
355 should_route :post, "/roles/permissions", :controller => 'roles', :action => 'permissions'
331 end
356 end
332
357
333 context "timelogs (global)" do
358 context "timelogs (global)" do
334 should_route :get, "/time_entries", :controller => 'timelog', :action => 'index'
359 should_route :get, "/time_entries", :controller => 'timelog', :action => 'index'
335 should_route :get, "/time_entries.csv", :controller => 'timelog', :action => 'index', :format => 'csv'
360 should_route :get, "/time_entries.csv", :controller => 'timelog', :action => 'index', :format => 'csv'
336 should_route :get, "/time_entries.atom", :controller => 'timelog', :action => 'index', :format => 'atom'
361 should_route :get, "/time_entries.atom", :controller => 'timelog', :action => 'index', :format => 'atom'
337 should_route :get, "/time_entries/new", :controller => 'timelog', :action => 'new'
362 should_route :get, "/time_entries/new", :controller => 'timelog', :action => 'new'
338 should_route :get, "/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22'
363 should_route :get, "/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22'
339
364
340 should_route :post, "/time_entries", :controller => 'timelog', :action => 'create'
365 should_route :post, "/time_entries", :controller => 'timelog', :action => 'create'
341
366
342 should_route :put, "/time_entries/22", :controller => 'timelog', :action => 'update', :id => '22'
367 should_route :put, "/time_entries/22", :controller => 'timelog', :action => 'update', :id => '22'
343
368
344 should_route :delete, "/time_entries/55", :controller => 'timelog', :action => 'destroy', :id => '55'
369 should_route :delete, "/time_entries/55", :controller => 'timelog', :action => 'destroy', :id => '55'
345 end
370 end
346
371
347 context "timelogs (scoped under project)" do
372 context "timelogs (scoped under project)" do
348 should_route :get, "/projects/567/time_entries", :controller => 'timelog', :action => 'index', :project_id => '567'
373 should_route :get, "/projects/567/time_entries", :controller => 'timelog', :action => 'index', :project_id => '567'
349 should_route :get, "/projects/567/time_entries.csv", :controller => 'timelog', :action => 'index', :project_id => '567', :format => 'csv'
374 should_route :get, "/projects/567/time_entries.csv", :controller => 'timelog', :action => 'index', :project_id => '567', :format => 'csv'
350 should_route :get, "/projects/567/time_entries.atom", :controller => 'timelog', :action => 'index', :project_id => '567', :format => 'atom'
375 should_route :get, "/projects/567/time_entries.atom", :controller => 'timelog', :action => 'index', :project_id => '567', :format => 'atom'
351 should_route :get, "/projects/567/time_entries/new", :controller => 'timelog', :action => 'new', :project_id => '567'
376 should_route :get, "/projects/567/time_entries/new", :controller => 'timelog', :action => 'new', :project_id => '567'
352 should_route :get, "/projects/567/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22', :project_id => '567'
377 should_route :get, "/projects/567/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22', :project_id => '567'
353
378
354 should_route :post, "/projects/567/time_entries", :controller => 'timelog', :action => 'create', :project_id => '567'
379 should_route :post, "/projects/567/time_entries", :controller => 'timelog', :action => 'create', :project_id => '567'
355
380
356 should_route :put, "/projects/567/time_entries/22", :controller => 'timelog', :action => 'update', :id => '22', :project_id => '567'
381 should_route :put, "/projects/567/time_entries/22", :controller => 'timelog', :action => 'update', :id => '22', :project_id => '567'
357
382
358 should_route :delete, "/projects/567/time_entries/55", :controller => 'timelog', :action => 'destroy', :id => '55', :project_id => '567'
383 should_route :delete, "/projects/567/time_entries/55", :controller => 'timelog', :action => 'destroy', :id => '55', :project_id => '567'
359 end
384 end
360
385
361 context "timelogs (scoped under issues)" do
386 context "timelogs (scoped under issues)" do
362 should_route :get, "/issues/234/time_entries", :controller => 'timelog', :action => 'index', :issue_id => '234'
387 should_route :get, "/issues/234/time_entries", :controller => 'timelog', :action => 'index', :issue_id => '234'
363 should_route :get, "/issues/234/time_entries.csv", :controller => 'timelog', :action => 'index', :issue_id => '234', :format => 'csv'
388 should_route :get, "/issues/234/time_entries.csv", :controller => 'timelog', :action => 'index', :issue_id => '234', :format => 'csv'
364 should_route :get, "/issues/234/time_entries.atom", :controller => 'timelog', :action => 'index', :issue_id => '234', :format => 'atom'
389 should_route :get, "/issues/234/time_entries.atom", :controller => 'timelog', :action => 'index', :issue_id => '234', :format => 'atom'
365 should_route :get, "/issues/234/time_entries/new", :controller => 'timelog', :action => 'new', :issue_id => '234'
390 should_route :get, "/issues/234/time_entries/new", :controller => 'timelog', :action => 'new', :issue_id => '234'
366 should_route :get, "/issues/234/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22', :issue_id => '234'
391 should_route :get, "/issues/234/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22', :issue_id => '234'
367
392
368 should_route :post, "/issues/234/time_entries", :controller => 'timelog', :action => 'create', :issue_id => '234'
393 should_route :post, "/issues/234/time_entries", :controller => 'timelog', :action => 'create', :issue_id => '234'
369
394
370 should_route :put, "/issues/234/time_entries/22", :controller => 'timelog', :action => 'update', :id => '22', :issue_id => '234'
395 should_route :put, "/issues/234/time_entries/22", :controller => 'timelog', :action => 'update', :id => '22', :issue_id => '234'
371
396
372 should_route :delete, "/issues/234/time_entries/55", :controller => 'timelog', :action => 'destroy', :id => '55', :issue_id => '234'
397 should_route :delete, "/issues/234/time_entries/55", :controller => 'timelog', :action => 'destroy', :id => '55', :issue_id => '234'
373 end
398 end
374
399
375 context "timelogs (scoped under project and issues)" do
400 context "timelogs (scoped under project and issues)" do
376 should_route :get, "/projects/ecookbook/issues/234/time_entries", :controller => 'timelog', :action => 'index', :issue_id => '234', :project_id => 'ecookbook'
401 should_route :get, "/projects/ecookbook/issues/234/time_entries", :controller => 'timelog', :action => 'index', :issue_id => '234', :project_id => 'ecookbook'
377 should_route :get, "/projects/ecookbook/issues/234/time_entries.csv", :controller => 'timelog', :action => 'index', :issue_id => '234', :project_id => 'ecookbook', :format => 'csv'
402 should_route :get, "/projects/ecookbook/issues/234/time_entries.csv", :controller => 'timelog', :action => 'index', :issue_id => '234', :project_id => 'ecookbook', :format => 'csv'
378 should_route :get, "/projects/ecookbook/issues/234/time_entries.atom", :controller => 'timelog', :action => 'index', :issue_id => '234', :project_id => 'ecookbook', :format => 'atom'
403 should_route :get, "/projects/ecookbook/issues/234/time_entries.atom", :controller => 'timelog', :action => 'index', :issue_id => '234', :project_id => 'ecookbook', :format => 'atom'
379 should_route :get, "/projects/ecookbook/issues/234/time_entries/new", :controller => 'timelog', :action => 'new', :issue_id => '234', :project_id => 'ecookbook'
404 should_route :get, "/projects/ecookbook/issues/234/time_entries/new", :controller => 'timelog', :action => 'new', :issue_id => '234', :project_id => 'ecookbook'
380 should_route :get, "/projects/ecookbook/issues/234/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22', :issue_id => '234', :project_id => 'ecookbook'
405 should_route :get, "/projects/ecookbook/issues/234/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22', :issue_id => '234', :project_id => 'ecookbook'
381
406
382 should_route :post, "/projects/ecookbook/issues/234/time_entries", :controller => 'timelog', :action => 'create', :issue_id => '234', :project_id => 'ecookbook'
407 should_route :post, "/projects/ecookbook/issues/234/time_entries", :controller => 'timelog', :action => 'create', :issue_id => '234', :project_id => 'ecookbook'
383
408
384 should_route :put, "/projects/ecookbook/issues/234/time_entries/22", :controller => 'timelog', :action => 'update', :id => '22', :issue_id => '234', :project_id => 'ecookbook'
409 should_route :put, "/projects/ecookbook/issues/234/time_entries/22", :controller => 'timelog', :action => 'update', :id => '22', :issue_id => '234', :project_id => 'ecookbook'
385
410
386 should_route :delete, "/projects/ecookbook/issues/234/time_entries/55", :controller => 'timelog', :action => 'destroy', :id => '55', :issue_id => '234', :project_id => 'ecookbook'
411 should_route :delete, "/projects/ecookbook/issues/234/time_entries/55", :controller => 'timelog', :action => 'destroy', :id => '55', :issue_id => '234', :project_id => 'ecookbook'
387
412
388 should_route :get, "/time_entries/report", :controller => 'timelog', :action => 'report'
413 should_route :get, "/time_entries/report", :controller => 'timelog', :action => 'report'
389 should_route :get, "/projects/567/time_entries/report", :controller => 'timelog', :action => 'report', :project_id => '567'
414 should_route :get, "/projects/567/time_entries/report", :controller => 'timelog', :action => 'report', :project_id => '567'
390 should_route :get, "/projects/567/time_entries/report.csv", :controller => 'timelog', :action => 'report', :project_id => '567', :format => 'csv'
415 should_route :get, "/projects/567/time_entries/report.csv", :controller => 'timelog', :action => 'report', :project_id => '567', :format => 'csv'
391 end
416 end
392
417
393 context "users" do
418 context "users" do
394 should_route :get, "/users", :controller => 'users', :action => 'index'
419 should_route :get, "/users", :controller => 'users', :action => 'index'
395 should_route :get, "/users.xml", :controller => 'users', :action => 'index', :format => 'xml'
420 should_route :get, "/users.xml", :controller => 'users', :action => 'index', :format => 'xml'
396 should_route :get, "/users/44", :controller => 'users', :action => 'show', :id => '44'
421 should_route :get, "/users/44", :controller => 'users', :action => 'show', :id => '44'
397 should_route :get, "/users/44.xml", :controller => 'users', :action => 'show', :id => '44', :format => 'xml'
422 should_route :get, "/users/44.xml", :controller => 'users', :action => 'show', :id => '44', :format => 'xml'
398 should_route :get, "/users/current", :controller => 'users', :action => 'show', :id => 'current'
423 should_route :get, "/users/current", :controller => 'users', :action => 'show', :id => 'current'
399 should_route :get, "/users/current.xml", :controller => 'users', :action => 'show', :id => 'current', :format => 'xml'
424 should_route :get, "/users/current.xml", :controller => 'users', :action => 'show', :id => 'current', :format => 'xml'
400 should_route :get, "/users/new", :controller => 'users', :action => 'new'
425 should_route :get, "/users/new", :controller => 'users', :action => 'new'
401 should_route :get, "/users/444/edit", :controller => 'users', :action => 'edit', :id => '444'
426 should_route :get, "/users/444/edit", :controller => 'users', :action => 'edit', :id => '444'
402
427
403 should_route :post, "/users", :controller => 'users', :action => 'create'
428 should_route :post, "/users", :controller => 'users', :action => 'create'
404 should_route :post, "/users.xml", :controller => 'users', :action => 'create', :format => 'xml'
429 should_route :post, "/users.xml", :controller => 'users', :action => 'create', :format => 'xml'
405
430
406 should_route :put, "/users/444", :controller => 'users', :action => 'update', :id => '444'
431 should_route :put, "/users/444", :controller => 'users', :action => 'update', :id => '444'
407 should_route :put, "/users/444.xml", :controller => 'users', :action => 'update', :id => '444', :format => 'xml'
432 should_route :put, "/users/444.xml", :controller => 'users', :action => 'update', :id => '444', :format => 'xml'
408
433
409 should_route :delete, "/users/44", :controller => 'users', :action => 'destroy', :id => '44'
434 should_route :delete, "/users/44", :controller => 'users', :action => 'destroy', :id => '44'
410 should_route :delete, "/users/44.xml", :controller => 'users', :action => 'destroy', :id => '44', :format => 'xml'
435 should_route :delete, "/users/44.xml", :controller => 'users', :action => 'destroy', :id => '44', :format => 'xml'
411
436
412 should_route :post, "/users/123/memberships", :controller => 'users', :action => 'edit_membership', :id => '123'
437 should_route :post, "/users/123/memberships", :controller => 'users', :action => 'edit_membership', :id => '123'
413 should_route :put, "/users/123/memberships/55", :controller => 'users', :action => 'edit_membership', :id => '123', :membership_id => '55'
438 should_route :put, "/users/123/memberships/55", :controller => 'users', :action => 'edit_membership', :id => '123', :membership_id => '55'
414 should_route :delete, "/users/123/memberships/55", :controller => 'users', :action => 'destroy_membership', :id => '123', :membership_id => '55'
439 should_route :delete, "/users/123/memberships/55", :controller => 'users', :action => 'destroy_membership', :id => '123', :membership_id => '55'
415 end
440 end
416
441
417 context "versions" do
442 context "versions" do
418 # /projects/foo/versions is /projects/foo/roadmap
443 # /projects/foo/versions is /projects/foo/roadmap
419 should_route :get, "/projects/foo/versions.xml", :controller => 'versions', :action => 'index', :project_id => 'foo', :format => 'xml'
444 should_route :get, "/projects/foo/versions.xml", :controller => 'versions', :action => 'index', :project_id => 'foo', :format => 'xml'
420 should_route :get, "/projects/foo/versions.json", :controller => 'versions', :action => 'index', :project_id => 'foo', :format => 'json'
445 should_route :get, "/projects/foo/versions.json", :controller => 'versions', :action => 'index', :project_id => 'foo', :format => 'json'
421
446
422 should_route :get, "/projects/foo/versions/new", :controller => 'versions', :action => 'new', :project_id => 'foo'
447 should_route :get, "/projects/foo/versions/new", :controller => 'versions', :action => 'new', :project_id => 'foo'
423
448
424 should_route :post, "/projects/foo/versions", :controller => 'versions', :action => 'create', :project_id => 'foo'
449 should_route :post, "/projects/foo/versions", :controller => 'versions', :action => 'create', :project_id => 'foo'
425 should_route :post, "/projects/foo/versions.xml", :controller => 'versions', :action => 'create', :project_id => 'foo', :format => 'xml'
450 should_route :post, "/projects/foo/versions.xml", :controller => 'versions', :action => 'create', :project_id => 'foo', :format => 'xml'
426 should_route :post, "/projects/foo/versions.json", :controller => 'versions', :action => 'create', :project_id => 'foo', :format => 'json'
451 should_route :post, "/projects/foo/versions.json", :controller => 'versions', :action => 'create', :project_id => 'foo', :format => 'json'
427
452
428 should_route :get, "/versions/1", :controller => 'versions', :action => 'show', :id => '1'
453 should_route :get, "/versions/1", :controller => 'versions', :action => 'show', :id => '1'
429 should_route :get, "/versions/1.xml", :controller => 'versions', :action => 'show', :id => '1', :format => 'xml'
454 should_route :get, "/versions/1.xml", :controller => 'versions', :action => 'show', :id => '1', :format => 'xml'
430 should_route :get, "/versions/1.json", :controller => 'versions', :action => 'show', :id => '1', :format => 'json'
455 should_route :get, "/versions/1.json", :controller => 'versions', :action => 'show', :id => '1', :format => 'json'
431
456
432 should_route :get, "/versions/1/edit", :controller => 'versions', :action => 'edit', :id => '1'
457 should_route :get, "/versions/1/edit", :controller => 'versions', :action => 'edit', :id => '1'
433
458
434 should_route :put, "/versions/1", :controller => 'versions', :action => 'update', :id => '1'
459 should_route :put, "/versions/1", :controller => 'versions', :action => 'update', :id => '1'
435 should_route :put, "/versions/1.xml", :controller => 'versions', :action => 'update', :id => '1', :format => 'xml'
460 should_route :put, "/versions/1.xml", :controller => 'versions', :action => 'update', :id => '1', :format => 'xml'
436 should_route :put, "/versions/1.json", :controller => 'versions', :action => 'update', :id => '1', :format => 'json'
461 should_route :put, "/versions/1.json", :controller => 'versions', :action => 'update', :id => '1', :format => 'json'
437
462
438 should_route :delete, "/versions/1", :controller => 'versions', :action => 'destroy', :id => '1'
463 should_route :delete, "/versions/1", :controller => 'versions', :action => 'destroy', :id => '1'
439 should_route :delete, "/versions/1.xml", :controller => 'versions', :action => 'destroy', :id => '1', :format => 'xml'
464 should_route :delete, "/versions/1.xml", :controller => 'versions', :action => 'destroy', :id => '1', :format => 'xml'
440 should_route :delete, "/versions/1.json", :controller => 'versions', :action => 'destroy', :id => '1', :format => 'json'
465 should_route :delete, "/versions/1.json", :controller => 'versions', :action => 'destroy', :id => '1', :format => 'json'
441
466
442 should_route :put, "/projects/foo/versions/close_completed", :controller => 'versions', :action => 'close_completed', :project_id => 'foo'
467 should_route :put, "/projects/foo/versions/close_completed", :controller => 'versions', :action => 'close_completed', :project_id => 'foo'
443 should_route :post, "/versions/1/status_by", :controller => 'versions', :action => 'status_by', :id => '1'
468 should_route :post, "/versions/1/status_by", :controller => 'versions', :action => 'status_by', :id => '1'
444 end
469 end
445
470
446 def test_welcome
471 def test_welcome
447 assert_routing(
472 assert_routing(
448 { :method => 'get', :path => "/robots.txt" },
473 { :method => 'get', :path => "/robots.txt" },
449 { :controller => 'welcome', :action => 'robots' }
474 { :controller => 'welcome', :action => 'robots' }
450 )
475 )
451 end
476 end
452
477
453 context "wiki (singular, project's pages)" do
478 context "wiki (singular, project's pages)" do
454 should_route :get, "/projects/567/wiki", :controller => 'wiki', :action => 'show', :project_id => '567'
479 should_route :get, "/projects/567/wiki", :controller => 'wiki', :action => 'show', :project_id => '567'
455 should_route :get, "/projects/567/wiki/lalala", :controller => 'wiki', :action => 'show', :project_id => '567', :id => 'lalala'
480 should_route :get, "/projects/567/wiki/lalala", :controller => 'wiki', :action => 'show', :project_id => '567', :id => 'lalala'
456 should_route :get, "/projects/567/wiki/my_page/edit", :controller => 'wiki', :action => 'edit', :project_id => '567', :id => 'my_page'
481 should_route :get, "/projects/567/wiki/my_page/edit", :controller => 'wiki', :action => 'edit', :project_id => '567', :id => 'my_page'
457 should_route :get, "/projects/1/wiki/CookBook_documentation/history", :controller => 'wiki', :action => 'history', :project_id => '1', :id => 'CookBook_documentation'
482 should_route :get, "/projects/1/wiki/CookBook_documentation/history", :controller => 'wiki', :action => 'history', :project_id => '1', :id => 'CookBook_documentation'
458 should_route :get, "/projects/1/wiki/CookBook_documentation/diff", :controller => 'wiki', :action => 'diff', :project_id => '1', :id => 'CookBook_documentation'
483 should_route :get, "/projects/1/wiki/CookBook_documentation/diff", :controller => 'wiki', :action => 'diff', :project_id => '1', :id => 'CookBook_documentation'
459 should_route :get, "/projects/1/wiki/CookBook_documentation/diff/2", :controller => 'wiki', :action => 'diff', :project_id => '1', :id => 'CookBook_documentation', :version => '2'
484 should_route :get, "/projects/1/wiki/CookBook_documentation/diff/2", :controller => 'wiki', :action => 'diff', :project_id => '1', :id => 'CookBook_documentation', :version => '2'
460 should_route :get, "/projects/1/wiki/CookBook_documentation/diff/2/vs/1", :controller => 'wiki', :action => 'diff', :project_id => '1', :id => 'CookBook_documentation', :version => '2', :version_from => '1'
485 should_route :get, "/projects/1/wiki/CookBook_documentation/diff/2/vs/1", :controller => 'wiki', :action => 'diff', :project_id => '1', :id => 'CookBook_documentation', :version => '2', :version_from => '1'
461 should_route :get, "/projects/1/wiki/CookBook_documentation/annotate/2", :controller => 'wiki', :action => 'annotate', :project_id => '1', :id => 'CookBook_documentation', :version => '2'
486 should_route :get, "/projects/1/wiki/CookBook_documentation/annotate/2", :controller => 'wiki', :action => 'annotate', :project_id => '1', :id => 'CookBook_documentation', :version => '2'
462 should_route :get, "/projects/22/wiki/ladida/rename", :controller => 'wiki', :action => 'rename', :project_id => '22', :id => 'ladida'
487 should_route :get, "/projects/22/wiki/ladida/rename", :controller => 'wiki', :action => 'rename', :project_id => '22', :id => 'ladida'
463 should_route :get, "/projects/567/wiki/index", :controller => 'wiki', :action => 'index', :project_id => '567'
488 should_route :get, "/projects/567/wiki/index", :controller => 'wiki', :action => 'index', :project_id => '567'
464 should_route :get, "/projects/567/wiki/date_index", :controller => 'wiki', :action => 'date_index', :project_id => '567'
489 should_route :get, "/projects/567/wiki/date_index", :controller => 'wiki', :action => 'date_index', :project_id => '567'
465 should_route :get, "/projects/567/wiki/export", :controller => 'wiki', :action => 'export', :project_id => '567'
490 should_route :get, "/projects/567/wiki/export", :controller => 'wiki', :action => 'export', :project_id => '567'
466
491
467 should_route :post, "/projects/567/wiki/CookBook_documentation/preview", :controller => 'wiki', :action => 'preview', :project_id => '567', :id => 'CookBook_documentation'
492 should_route :post, "/projects/567/wiki/CookBook_documentation/preview", :controller => 'wiki', :action => 'preview', :project_id => '567', :id => 'CookBook_documentation'
468 should_route :post, "/projects/22/wiki/ladida/rename", :controller => 'wiki', :action => 'rename', :project_id => '22', :id => 'ladida'
493 should_route :post, "/projects/22/wiki/ladida/rename", :controller => 'wiki', :action => 'rename', :project_id => '22', :id => 'ladida'
469 should_route :post, "/projects/22/wiki/ladida/protect", :controller => 'wiki', :action => 'protect', :project_id => '22', :id => 'ladida'
494 should_route :post, "/projects/22/wiki/ladida/protect", :controller => 'wiki', :action => 'protect', :project_id => '22', :id => 'ladida'
470 should_route :post, "/projects/22/wiki/ladida/add_attachment", :controller => 'wiki', :action => 'add_attachment', :project_id => '22', :id => 'ladida'
495 should_route :post, "/projects/22/wiki/ladida/add_attachment", :controller => 'wiki', :action => 'add_attachment', :project_id => '22', :id => 'ladida'
471
496
472 should_route :put, "/projects/567/wiki/my_page", :controller => 'wiki', :action => 'update', :project_id => '567', :id => 'my_page'
497 should_route :put, "/projects/567/wiki/my_page", :controller => 'wiki', :action => 'update', :project_id => '567', :id => 'my_page'
473
498
474 should_route :delete, "/projects/22/wiki/ladida", :controller => 'wiki', :action => 'destroy', :project_id => '22', :id => 'ladida'
499 should_route :delete, "/projects/22/wiki/ladida", :controller => 'wiki', :action => 'destroy', :project_id => '22', :id => 'ladida'
475 end
500 end
476
501
477 context "wikis (plural, admin setup)" do
502 context "wikis (plural, admin setup)" do
478 should_route :get, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida'
503 should_route :get, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida'
479
504
480 should_route :post, "/projects/ladida/wiki", :controller => 'wikis', :action => 'edit', :id => 'ladida'
505 should_route :post, "/projects/ladida/wiki", :controller => 'wikis', :action => 'edit', :id => 'ladida'
481 should_route :post, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida'
506 should_route :post, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida'
482 end
507 end
483
508
484 def test_administration_panel
509 def test_administration_panel
485 assert_routing(
510 assert_routing(
486 { :method => 'get', :path => "/admin/projects" },
511 { :method => 'get', :path => "/admin/projects" },
487 { :controller => 'admin', :action => 'projects' }
512 { :controller => 'admin', :action => 'projects' }
488 )
513 )
489 end
514 end
490 end
515 end
General Comments 0
You need to be logged in to leave comments. Login now