forked from backlogs/redmine_backlogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.feature
60 lines (52 loc) · 2.21 KB
/
routes.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Feature: Routes
As a user
I want pages to have proper urls
So that I can bookmark them
Background:
Given the ecookbook project has the backlogs plugin enabled
And I am a scrum master of the project
Scenario: Backlogs page
When I get the "rb/master_backlog/ecookbook" page
Then application should route me to:
| controller | rb_master_backlogs |
| action | show |
| project_id | ecookbook |
And the request should complete successfully
Scenario: Server variables script for all projects
When I get the "rb/server_variables.js" page
Then application should route me to:
| controller | rb_server_variables |
| action | index |
| format | js |
And the request should complete successfully
Scenario: Server variables script for project
When I get the "rb/server_variables/project/ecookbook.js" page
Then application should route me to:
| controller | rb_server_variables |
| action | project |
| project_id | ecookbook |
| format | js |
And the request should complete successfully
Scenario: Server variables script for sprint
When I get the "rb/server_variables/sprint/1.js" page
Then application should route me to:
| controller | rb_server_variables |
| action | sprint |
| sprint_id | 1 |
| format | js |
And the request should complete successfully
Scenario: Task create page
When I post the "rb/task" page with params:
| project_id | ecookbook |
Then application should route me to:
| controller | rb_tasks |
| action | create |
And the request should complete successfully
Scenario: Task update page
When I put the "rb/task/1" page with params:
| project_id | ecookbook |
Then application should route me to:
| controller | rb_tasks |
| action | update |
| id | 1 |
And the request should complete successfully