Skip to content

Instantly share code, notes, and snippets.

@jgwhite
Created May 3, 2014 10:15
Show Gist options
  • Save jgwhite/c0b8517827ac32aca835 to your computer and use it in GitHub Desktop.
Save jgwhite/c0b8517827ac32aca835 to your computer and use it in GitHub Desktop.
Decent example of a cucumber spec
Feature: Adding a session
Scenario:
Given I am in London
Given it is 28 April 2014 at 12:00
And I am signed in to Google as "someone@example.com"
When I visit "/admin"
And I fill in "Add a session" with "Wednesday at 2pm"
And I click "Add"
Then I see "Wednesday 2:00–2:30pm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment