Skip to content

Instantly share code, notes, and snippets.

@ytheohar
Last active May 12, 2016 17:10
Show Gist options
  • Save ytheohar/e085dda643ebbbd5ffaa to your computer and use it in GitHub Desktop.
Save ytheohar/e085dda643ebbbd5ffaa to your computer and use it in GitHub Desktop.
Feature: Book search
To allow a customer to find his favourite books quickly, the library must offer multiple ways to search for a book.
Scenario: Search books by publication year
Given a book with the title 'One good book', written by 'Anonymous', published in 14 March 2013
And another book with the title 'Some other book', written by 'Tim Tomson', published in 23 August 2014
And another book with the title 'How to cook a dino', written by 'Fred Flintstone', published in 01 January 2012
When the customer searches for books published between 2013 and 2014
Then 2 books should have been found
And Book 1 should have the title 'Some other book'
And Book 2 should have the title 'One good book'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment