Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning up features so they dont contain too many implementation spe…
…cific steps
- Loading branch information
Victor Tatai
committed
Mar 24, 2011
1 parent
035b253
commit 10018fa
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
14 changes: 4 additions & 10 deletions
14
features/household_picture.feature → features/add_picture_to_household.feature
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
Feature: User attaches picture to household | ||
Feature: User adds picture to household | ||
In order to show pictures for households, | ||
As any user | ||
I want to be able to upload a picture of the entire household to the household page | ||
|
||
Scenario: User attaches picture to household | ||
Given I am a new, authenticated user | ||
And a household called "Hun" | ||
When I go to the page for household "Hun" | ||
And I follow "Edit" | ||
And I add the photo "sample.jpg" to the household | ||
And I press "Update" | ||
Then I should be on the page for household "Hun" | ||
And I should see a picture for the household | ||
When I upload a picture for household "Hun" | ||
Then I should see a picture for the household | ||
|
||
Scenario: User removes picture from household | ||
Given I am a new, authenticated user | ||
And a household called "Hun" | ||
And a picture "sample.jpg" for household "Hun" | ||
When I go to the page for household "Hun" | ||
And I press "Remove picture" | ||
Then I should be on the page for household "Hun" | ||
When I remove the picture for household "Hun" | ||
And I should not see a picture for the household | ||
|
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