Skip to content

Instantly share code, notes, and snippets.

@njenan
Created June 17, 2017 21:51
Show Gist options
  • Save njenan/18a7e60d0013742679fd85edd3c3b909 to your computer and use it in GitHub Desktop.
Save njenan/18a7e60d0013742679fd85edd3c3b909 to your computer and use it in GitHub Desktop.
Example of High Level Catalog Specification
Feature: Manage bookstore catalog
As the owner of the bookstore
I want to add books to the catalog
In order to make all the money
Scenario: Add book to catalog
Given there are 2 books for sale
When I add a new book to the catalog
Then I should see 3 books for sale
Scenario: Remove book from catalog
Given there are 3 books for sale
When I remove a book from the catalog
Then I should see 2 books for sale
Scenario: Can't add same book twice
Given there is a unique book in the catalog
When I add a book with the same title
Then I should receive an error message
And the book should not be created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment