Created
June 12, 2009 18:36
-
-
Save TMorgan99/128824 to your computer and use it in GitHub Desktop.
This file contains 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: Removing Actions | |
As a practising Hobo, | |
I want to disable unwanted routes | |
We only really want to see tasks listed against stories and users. | |
We want to add stories within projects, and tasks within stories. | |
Scenario Outline: User experience | |
Given I am logged in as <User> | |
And the following Project records exist: | |
| name | | |
| Project 1 | | |
And the following Story records exist: | |
| title | | |
| Story 1 | | |
Then I should have navigation options "<main-nav>" | |
But I should not see "Stories" | |
But I should not see "Tasks" | |
When I go to the projects page | |
Then can I see new project link: <new_project?> | |
When I go to the project page for Project 1 | |
Then can I see new story link: <new_story?> | |
And can I see edit project link: <edit_project?> | |
# | |
When I go to the story page for Story 1 | |
Then can I see edit story link: <edit_story?> | |
And can I see add task button: <add_task?> | |
Examples: | |
| User | main-nav | new_project? | new_story? | edit_project? | edit_story? | add_task? | | |
| Guest | Home Projects | no | no | no | no | no | | |
| User | Home Projects | no | no | no | no | no | | |
| Admin | Home Projects | yes | yes | yes | yes | yes | | |
Scenario: Admin creates records.for Project, Story, Task | |
Given I am logged in as Admin | |
When I go to the projects page | |
And I follow "New Project" | |
Then I should be on the new project page | |
When I fill in "project[name]" with "Test Project" | |
And I press "Create Project" | |
Then I should see "The project was created successfully" | |
When I follow "New Story" | |
Then I should be on the new story page for Test Project project | |
When I fill in "story[title]" with "a Titled Story" | |
And I fill in "story[body]" with "some magnificient text for Body, to make it interesting" | |
And I fill in "story[status]" with "testcase" | |
And I press "Create Story" | |
Then I should see "The story was created successfully" | |
And I should be on the story page for a Titled Story | |
Then I should see "« Test Project" | |
And I should see "a Titled Story" | |
And I should see "some magnificient text for Body, to make it interesting" | |
And I should see "testcase" | |
And I should see "Add a Task" | |
When I fill in "task[description]" with "Funny Description" | |
And I press "Add" | |
Then I should see "The task was created successfully" | |
And I should see "Funny Description" | |
And I should see "Task Assignments" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment