Skip to content

Instantly share code, notes, and snippets.

@TMorgan99
Created June 12, 2009 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TMorgan99/128825 to your computer and use it in GitHub Desktop.
Save TMorgan99/128825 to your computer and use it in GitHub Desktop.
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