Skip to content

Instantly share code, notes, and snippets.

@vtatai
Created March 18, 2011 01:08
Show Gist options
  • Save vtatai/875457 to your computer and use it in GitHub Desktop.
Save vtatai/875457 to your computer and use it in GitHub Desktop.
User attaches picture to household
Feature: User attaches 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 press "Edit"
And I add the photo "sample.jpg"
And I press "Update"
Then I should be on the page for household "Hun"
And 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"
And I should not see a picture for the household
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment