Created
June 12, 2009 18:37
-
-
Save TMorgan99/128825 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Permissions | |
As a practical Hobo, | |
I want to specify permissions | |
* Only administrators can create, edit and delete Projects | |
* Stories and Tasks ( and TaskAssignments) are open to change by all signed up users. | |
* Guests are only able to view | |
* prevent Stories being moved from its original Project | |
* prevent Tasks being moved from the originating Story | |
* provide a way for the user to set TaskAssignments on the Task page | |
Scenario Outline: CRUDY permissions | |
Given I am logged in as <User> | |
And the following Project records exist: | |
| name | | |
| Project 1 | | |
And the following Story records exist: | |
| title | project | | |
| Story 1 | 1 | | |
And the following Task records exist: | |
| description | story | | |
| Task 1 | 1 | | |
# navigate about the Project | |
When I go to the project page for Project 1 | |
Then I should see "Edit Project" <project?> | |
Then I should see "New Story" <story?> | |
When I go to the edit project page for Project 1 | |
Then I should see "Remove This Project" button <project?> | |
And I should be able to edit "Name" <project?> | |
When I follow "Cancel" | |
Then I should be on the project page for Project 1 | |
# navigate about the Story | |
When I go to the story page for Story 1 | |
Then I should see "Edit Story" <story?> | |
And I should see a list of Tasks | |
Then I should see "Add a Task" button <task?> | |
When I go to the edit story page for Story 1 | |
Then I should see "Remove This Story" button <story?> | |
Then I should be able to edit "Title" <story?> | |
And I should be able to edit "Body" <story?> | |
And I should be able to edit "Status" <story?> | |
And I should have a menu for "Project" | |
# navigate about the Task | |
When I go to the edit task page for Task 1 | |
Then I should see "Remove This Task" button <task?> | |
Then I should be able to edit "Description" <task?> | |
And I should have a menu for "Story" | |
Examples: | |
| User | project?| story? | task? | TaskAssignment | | |
| Admin | yes | yes | yes | yes | | |
| User | no | yes | yes | yes | | |
| Guest | no | no | no | no | | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment