Skip to content

Instantly share code, notes, and snippets.

@hoitomt
Last active December 18, 2015 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoitomt/5798628 to your computer and use it in GitHub Desktop.
Save hoitomt/5798628 to your computer and use it in GitHub Desktop.
Cucumber Tests for Meeting
Feature: Ratings and Reviews
As a User,
In order to rate a listing
I should be able to leave a review for a listing
Scenario: Successfully submit the review
Given a Ratings and Review form for a Listing
When the form is submitted with valid information
Then the browser should be redirected to the R&R Thank You page
And the ratings count should be incremented by 1 for the listing
Scenario: Invalid Captcha
Given a Ratings and Review form for a listing
When the form is submitted with an invalid Captcha
Then the browser should remain on the current Listing form
and the ratings count should not be incremented for the listing
@colinrymer
Copy link

If you tell github this file's syntax is markdown and then wrap it in

````gherkin
[the code]
````

you'll get nice syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment