Skip to content

Instantly share code, notes, and snippets.

@joshcrews
Created October 23, 2012 16:12
Show Gist options
  • Save joshcrews/3939763 to your computer and use it in GitHub Desktop.
Save joshcrews/3939763 to your computer and use it in GitHub Desktop.
Example Cucumber feature
Feature: Admin can hide events
In order to get bad stuff off the site without deleting it from the database
As a admin
I want to hide events
Scenario: normal
Given a user "tim@gmail.com" exists
Given he has an event named "Monster Truck Rally"
When I go to the events page
Then I should see "Monster Track Rally"
When I log into the admin
When I follow "Events"
When I hide "Monster Track Rally"
Then I should see "success"
When I go to the events page
Then I should not see "Monster Track Rally"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment