Skip to content

Instantly share code, notes, and snippets.

@dabit
Created September 20, 2011 05:29
Show Gist options
  • Save dabit/1228413 to your computer and use it in GitHub Desktop.
Save dabit/1228413 to your computer and use it in GitHub Desktop.
shots.feature
 @javascript
 Scenario: Add image for different countries
   Given a country exists with name: "Mexico", locale: "en_MX"
   And a country exists with name: "United States", locale: "en_US"
   And an event exists with name: "Huge Sale"
When I go to the edit event page for "Huge Sale"
   And I select "United States" as the country
When I attach the file "spec/support/logo.jpg" to "Image"
And I press "Update"
Then I should see an image
When I go to the edit event page for "Huge Sale"
   And I select "Mexico" as the country
When I attach the file "spec/support/logo.jpg" to "Image"
And I press "Update"
Then I should see an image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment