##// END OF EJS Templates
added roadmap and activity calls in projects functional tests...
Jean-Philippe Lang -
r368:1493c2a9b4d1
parent child
Show More
@@ -1,550 +1,559
1 1 ---
2 2 permissions_052:
3 3 action: destroy_comment
4 4 id: 52
5 5 description: label_comment_delete
6 6 controller: news
7 7 mail_enabled: false
8 8 mail_option: false
9 9 sort: 1133
10 10 is_public: false
11 11 permissions_041:
12 12 action: add_file
13 13 id: 41
14 14 description: button_add
15 15 controller: projects
16 16 mail_enabled: false
17 17 mail_option: true
18 18 sort: 1320
19 19 is_public: false
20 20 permissions_030:
21 21 action: destroy
22 22 id: 30
23 23 description: button_delete
24 24 controller: news
25 25 mail_enabled: false
26 26 mail_option: false
27 27 sort: 1122
28 28 is_public: false
29 29 permissions_019:
30 30 action: download
31 31 id: 19
32 32 description: button_download
33 33 controller: issues
34 34 mail_enabled: false
35 35 mail_option: false
36 36 sort: 1010
37 37 is_public: true
38 38 permissions_008:
39 39 action: edit
40 40 id: 8
41 41 description: button_edit
42 42 controller: members
43 43 mail_enabled: false
44 44 mail_option: false
45 45 sort: 221
46 46 is_public: false
47 47 permissions_053:
48 48 action: add_query
49 49 id: 53
50 50 description: button_create
51 51 controller: projects
52 52 mail_enabled: false
53 53 mail_option: false
54 54 sort: 600
55 55 is_public: false
56 56 permissions_042:
57 57 action: destroy_file
58 58 id: 42
59 59 description: button_delete
60 60 controller: versions
61 61 mail_enabled: false
62 62 mail_option: false
63 63 sort: 1322
64 64 is_public: false
65 65 permissions_031:
66 66 action: list_documents
67 67 id: 31
68 68 description: button_list
69 69 controller: projects
70 70 mail_enabled: false
71 71 mail_option: false
72 72 sort: 1200
73 73 is_public: true
74 74 permissions_020:
75 75 action: add_issue
76 76 id: 20
77 77 description: button_add
78 78 controller: projects
79 79 mail_enabled: true
80 80 mail_option: true
81 81 sort: 1050
82 82 is_public: false
83 83 permissions_009:
84 84 action: destroy
85 85 id: 9
86 86 description: button_delete
87 87 controller: members
88 88 mail_enabled: false
89 89 mail_option: false
90 90 sort: 222
91 91 is_public: false
92 92 permissions_054:
93 93 action: show
94 94 id: 54
95 95 description: button_view
96 96 controller: repositories
97 97 mail_enabled: false
98 98 mail_option: false
99 99 sort: 1450
100 100 is_public: true
101 101 permissions_043:
102 102 action: move_issues
103 103 id: 43
104 104 description: button_move
105 105 controller: projects
106 106 mail_enabled: false
107 107 mail_option: false
108 108 sort: 1061
109 109 is_public: false
110 110 permissions_032:
111 111 action: show
112 112 id: 32
113 113 description: button_view
114 114 controller: documents
115 115 mail_enabled: false
116 116 mail_option: false
117 117 sort: 1201
118 118 is_public: true
119 119 permissions_021:
120 120 action: edit
121 121 id: 21
122 122 description: button_edit
123 123 controller: issues
124 124 mail_enabled: false
125 125 mail_option: false
126 126 sort: 1055
127 127 is_public: false
128 128 permissions_010:
129 129 action: add_version
130 130 id: 10
131 131 description: button_add
132 132 controller: projects
133 133 mail_enabled: false
134 134 mail_option: false
135 135 sort: 320
136 136 is_public: false
137 137 permissions_055:
138 138 action: browse
139 139 id: 55
140 140 description: label_browse
141 141 controller: repositories
142 142 mail_enabled: false
143 143 mail_option: false
144 144 sort: 1460
145 145 is_public: true
146 146 permissions_044:
147 147 action: add_note
148 148 id: 44
149 149 description: label_add_note
150 150 controller: issues
151 151 mail_enabled: false
152 152 mail_option: true
153 153 sort: 1057
154 154 is_public: false
155 155 permissions_033:
156 156 action: download
157 157 id: 33
158 158 description: button_download
159 159 controller: documents
160 160 mail_enabled: false
161 161 mail_option: false
162 162 sort: 1202
163 163 is_public: true
164 164 permissions_022:
165 165 action: change_status
166 166 id: 22
167 167 description: label_change_status
168 168 controller: issues
169 169 mail_enabled: true
170 170 mail_option: true
171 171 sort: 1060
172 172 is_public: false
173 173 permissions_011:
174 174 action: edit
175 175 id: 11
176 176 description: button_edit
177 177 controller: versions
178 178 mail_enabled: false
179 179 mail_option: false
180 180 sort: 321
181 181 is_public: false
182 182 permissions_056:
183 183 action: entry
184 184 id: 56
185 185 description: entry
186 186 controller: repositories
187 187 mail_enabled: false
188 188 mail_option: false
189 189 sort: 1462
190 190 is_public: true
191 191 permissions_045:
192 192 action: export_issues_pdf
193 193 id: 45
194 194 description: label_export_pdf
195 195 controller: projects
196 196 mail_enabled: false
197 197 mail_option: false
198 198 sort: 1002
199 199 is_public: true
200 200 permissions_034:
201 201 action: add_document
202 202 id: 34
203 203 description: button_add
204 204 controller: projects
205 205 mail_enabled: false
206 206 mail_option: true
207 207 sort: 1220
208 208 is_public: false
209 209 permissions_023:
210 210 action: destroy
211 211 id: 23
212 212 description: button_delete
213 213 controller: issues
214 214 mail_enabled: false
215 215 mail_option: false
216 216 sort: 1065
217 217 is_public: false
218 218 permissions_012:
219 219 action: destroy
220 220 id: 12
221 221 description: button_delete
222 222 controller: versions
223 223 mail_enabled: false
224 224 mail_option: false
225 225 sort: 322
226 226 is_public: false
227 227 permissions_001:
228 228 action: show
229 229 id: 1
230 230 description: label_overview
231 231 controller: projects
232 232 mail_enabled: false
233 233 mail_option: false
234 234 sort: 100
235 235 is_public: true
236 236 permissions_057:
237 237 action: revisions
238 238 id: 57
239 239 description: label_view_revisions
240 240 controller: repositories
241 241 mail_enabled: false
242 242 mail_option: false
243 243 sort: 1470
244 244 is_public: true
245 245 permissions_046:
246 246 action: export_pdf
247 247 id: 46
248 248 description: label_export_pdf
249 249 controller: issues
250 250 mail_enabled: false
251 251 mail_option: false
252 252 sort: 1015
253 253 is_public: true
254 254 permissions_035:
255 255 action: edit
256 256 id: 35
257 257 description: button_edit
258 258 controller: documents
259 259 mail_enabled: false
260 260 mail_option: false
261 261 sort: 1221
262 262 is_public: false
263 263 permissions_024:
264 264 action: add_attachment
265 265 id: 24
266 266 description: label_attachment_new
267 267 controller: issues
268 268 mail_enabled: false
269 269 mail_option: true
270 270 sort: 1070
271 271 is_public: false
272 272 permissions_013:
273 273 action: add_issue_category
274 274 id: 13
275 275 description: button_add
276 276 controller: projects
277 277 mail_enabled: false
278 278 mail_option: false
279 279 sort: 420
280 280 is_public: false
281 281 permissions_002:
282 282 action: changelog
283 283 id: 2
284 284 description: label_change_log
285 285 controller: projects
286 286 mail_enabled: false
287 287 mail_option: false
288 288 sort: 105
289 289 is_public: true
290 290 permissions_058:
291 291 action: revision
292 292 id: 58
293 293 description: label_view_revisions
294 294 controller: repositories
295 295 mail_enabled: false
296 296 mail_option: false
297 297 sort: 1472
298 298 is_public: true
299 299 permissions_047:
300 300 action: activity
301 301 id: 47
302 302 description: label_activity
303 303 controller: projects
304 304 mail_enabled: false
305 305 mail_option: false
306 306 sort: 160
307 307 is_public: true
308 308 permissions_036:
309 309 action: destroy
310 310 id: 36
311 311 description: button_delete
312 312 controller: documents
313 313 mail_enabled: false
314 314 mail_option: false
315 315 sort: 1222
316 316 is_public: false
317 317 permissions_025:
318 318 action: destroy_attachment
319 319 id: 25
320 320 description: label_attachment_delete
321 321 controller: issues
322 322 mail_enabled: false
323 323 mail_option: false
324 324 sort: 1075
325 325 is_public: false
326 326 permissions_014:
327 327 action: edit
328 328 id: 14
329 329 description: button_edit
330 330 controller: issue_categories
331 331 mail_enabled: false
332 332 mail_option: false
333 333 sort: 421
334 334 is_public: false
335 335 permissions_003:
336 336 action: issue_report
337 337 id: 3
338 338 description: label_report_plural
339 339 controller: reports
340 340 mail_enabled: false
341 341 mail_option: false
342 342 sort: 110
343 343 is_public: true
344 344 permissions_059:
345 345 action: diff
346 346 id: 59
347 347 description: diff
348 348 controller: repositories
349 349 mail_enabled: false
350 350 mail_option: false
351 351 sort: 1480
352 352 is_public: true
353 353 permissions_048:
354 354 action: calendar
355 355 id: 48
356 356 description: label_calendar
357 357 controller: projects
358 358 mail_enabled: false
359 359 mail_option: false
360 360 sort: 165
361 361 is_public: true
362 362 permissions_037:
363 363 action: add_attachment
364 364 id: 37
365 365 description: label_attachment_new
366 366 controller: documents
367 367 mail_enabled: false
368 368 mail_option: true
369 369 sort: 1223
370 370 is_public: false
371 371 permissions_026:
372 372 action: list_news
373 373 id: 26
374 374 description: button_list
375 375 controller: projects
376 376 mail_enabled: false
377 377 mail_option: false
378 378 sort: 1100
379 379 is_public: true
380 380 permissions_015:
381 381 action: destroy
382 382 id: 15
383 383 description: button_delete
384 384 controller: issue_categories
385 385 mail_enabled: false
386 386 mail_option: false
387 387 sort: 422
388 388 is_public: false
389 389 permissions_004:
390 390 action: settings
391 391 id: 4
392 392 description: label_settings
393 393 controller: projects
394 394 mail_enabled: false
395 395 mail_option: false
396 396 sort: 150
397 397 is_public: false
398 398 permissions_060:
399 399 action: search
400 400 id: 61
401 401 description: label_search
402 402 controller: projects
403 403 mail_enabled: false
404 404 mail_option: false
405 405 sort: 130
406 406 is_public: true
407 407 permissions_049:
408 408 action: gantt
409 409 id: 49
410 410 description: label_gantt
411 411 controller: projects
412 412 mail_enabled: false
413 413 mail_option: false
414 414 sort: 166
415 415 is_public: true
416 416 permissions_038:
417 417 action: destroy_attachment
418 418 id: 38
419 419 description: label_attachment_delete
420 420 controller: documents
421 421 mail_enabled: false
422 422 mail_option: false
423 423 sort: 1224
424 424 is_public: false
425 425 permissions_027:
426 426 action: show
427 427 id: 27
428 428 description: button_view
429 429 controller: news
430 430 mail_enabled: false
431 431 mail_option: false
432 432 sort: 1101
433 433 is_public: true
434 434 permissions_016:
435 435 action: list_issues
436 436 id: 16
437 437 description: button_list
438 438 controller: projects
439 439 mail_enabled: false
440 440 mail_option: false
441 441 sort: 1000
442 442 is_public: true
443 443 permissions_005:
444 444 action: edit
445 445 id: 5
446 446 description: button_edit
447 447 controller: projects
448 448 mail_enabled: false
449 449 mail_option: false
450 450 sort: 151
451 451 is_public: false
452 452 permissions_061:
453 453 action: search
454 454 id: 62
455 455 description: label_search
456 456 controller: projects
457 457 mail_enabled: false
458 458 mail_option: false
459 459 sort: 130
460 460 is_public: true
461 permissions_062:
462 action: roadmap
463 id: 63
464 description: label_roadmap
465 controller: projects
466 mail_enabled: false
467 mail_option: false
468 sort: 107
469 is_public: true
461 470 permissions_050:
462 471 action: history
463 472 id: 50
464 473 description: label_history
465 474 controller: issues
466 475 mail_enabled: false
467 476 mail_option: false
468 477 sort: 1006
469 478 is_public: true
470 479 permissions_039:
471 480 action: list_files
472 481 id: 39
473 482 description: button_list
474 483 controller: projects
475 484 mail_enabled: false
476 485 mail_option: false
477 486 sort: 1300
478 487 is_public: true
479 488 permissions_028:
480 489 action: add_news
481 490 id: 28
482 491 description: button_add
483 492 controller: projects
484 493 mail_enabled: false
485 494 mail_option: false
486 495 sort: 1120
487 496 is_public: false
488 497 permissions_017:
489 498 action: export_issues_csv
490 499 id: 17
491 500 description: label_export_csv
492 501 controller: projects
493 502 mail_enabled: false
494 503 mail_option: false
495 504 sort: 1001
496 505 is_public: true
497 506 permissions_006:
498 507 action: list_members
499 508 id: 6
500 509 description: button_list
501 510 controller: projects
502 511 mail_enabled: false
503 512 mail_option: false
504 513 sort: 200
505 514 is_public: true
506 515 permissions_051:
507 516 action: add_comment
508 517 id: 51
509 518 description: label_comment_add
510 519 controller: news
511 520 mail_enabled: false
512 521 mail_option: false
513 522 sort: 1130
514 523 is_public: false
515 524 permissions_040:
516 525 action: download
517 526 id: 40
518 527 description: button_download
519 528 controller: versions
520 529 mail_enabled: false
521 530 mail_option: false
522 531 sort: 1301
523 532 is_public: true
524 533 permissions_029:
525 534 action: edit
526 535 id: 29
527 536 description: button_edit
528 537 controller: news
529 538 mail_enabled: false
530 539 mail_option: false
531 540 sort: 1121
532 541 is_public: false
533 542 permissions_018:
534 543 action: show
535 544 id: 18
536 545 description: button_view
537 546 controller: issues
538 547 mail_enabled: false
539 548 mail_option: false
540 549 sort: 1005
541 550 is_public: true
542 551 permissions_007:
543 552 action: add_member
544 553 id: 7
545 554 description: button_add
546 555 controller: projects
547 556 mail_enabled: false
548 557 mail_option: false
549 558 sort: 220
550 559 is_public: false
@@ -1,124 +1,138
1 1 # redMine - project management software
2 2 # Copyright (C) 2006 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require File.dirname(__FILE__) + '/../test_helper'
19 19 require 'projects_controller'
20 20
21 21 # Re-raise errors caught by the controller.
22 22 class ProjectsController; def rescue_action(e) raise e end; end
23 23
24 24 class ProjectsControllerTest < Test::Unit::TestCase
25 25 fixtures :projects, :permissions
26 26
27 27 def setup
28 28 @controller = ProjectsController.new
29 29 @request = ActionController::TestRequest.new
30 30 @response = ActionController::TestResponse.new
31 31 end
32 32
33 33 def test_index
34 34 get :index
35 35 assert_response :success
36 36 assert_template 'list'
37 37 end
38 38
39 39 def test_list
40 40 get :list
41 41 assert_response :success
42 42 assert_template 'list'
43 43 assert_not_nil assigns(:projects)
44 44 end
45 45
46 46 def test_show
47 47 get :show, :id => 1
48 48 assert_response :success
49 49 assert_template 'show'
50 50 assert_not_nil assigns(:project)
51 51 end
52 52
53 53 def test_list_members
54 54 get :list_members, :id => 1
55 55 assert_response :success
56 56 assert_template 'list_members'
57 57 assert_not_nil assigns(:members)
58 58 end
59 59
60 60 def test_list_documents
61 61 get :list_documents, :id => 1
62 62 assert_response :success
63 63 assert_template 'list_documents'
64 64 assert_not_nil assigns(:documents)
65 65 end
66 66
67 67 def test_list_issues
68 68 get :list_issues, :id => 1
69 69 assert_response :success
70 70 assert_template 'list_issues'
71 71 assert_not_nil assigns(:issues)
72 72 end
73 73
74 74 def test_list_issues_with_filter
75 75 get :list_issues, :id => 1, :set_filter => 1
76 76 assert_response :success
77 77 assert_template 'list_issues'
78 78 assert_not_nil assigns(:issues)
79 79 end
80 80
81 81 def test_list_issues_reset_filter
82 82 post :list_issues, :id => 1
83 83 assert_response :success
84 84 assert_template 'list_issues'
85 85 assert_not_nil assigns(:issues)
86 86 end
87 87
88 88 def test_export_issues_csv
89 89 get :export_issues_csv, :id => 1
90 90 assert_response :success
91 91 assert_not_nil assigns(:issues)
92 92 end
93 93
94 94 def test_list_news
95 95 get :list_news, :id => 1
96 96 assert_response :success
97 97 assert_template 'list_news'
98 98 assert_not_nil assigns(:news)
99 99 end
100 100
101 101 def test_list_files
102 102 get :list_files, :id => 1
103 103 assert_response :success
104 104 assert_template 'list_files'
105 105 assert_not_nil assigns(:versions)
106 106 end
107 107
108 108 def test_changelog
109 109 get :changelog, :id => 1
110 110 assert_response :success
111 111 assert_template 'changelog'
112 112 assert_not_nil assigns(:fixed_issues)
113 113 end
114 114
115 def test_roadmap
116 get :roadmap, :id => 1
117 assert_response :success
118 assert_template 'roadmap'
119 assert_not_nil assigns(:versions)
120 end
121
122 def test_activity
123 get :activity, :id => 1
124 assert_response :success
125 assert_template 'activity'
126 assert_not_nil assigns(:events_by_day)
127 end
128
115 129 def test_search
116 130 get :search, :id => 1
117 131 assert_response :success
118 132 assert_template 'search'
119 133
120 134 get :search, :id => 1, :token => "can", :scope => ["issues", "news", "documents"]
121 135 assert_response :success
122 136 assert_template 'search'
123 137 end
124 138 end
General Comments 0
You need to be logged in to leave comments. Login now