Skip to content

Instantly share code, notes, and snippets.

@jordancrawfordnz
Created April 1, 2017 01:22
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 jordancrawfordnz/340463924abf9d84a0e6441e8f2d9f10 to your computer and use it in GitHub Desktop.
Save jordancrawfordnz/340463924abf9d84a0e6441e8f2d9f10 to your computer and use it in GitHub Desktop.
An example of a Cucumber feature for Ticket to Ride.
Scenario: The player uses their turn to claim a route and the route appears as claimed.
Given a game with 5 players is setup
And the player has 5 train pieces
And the player has 5 "Hopper" train cars
And the player navigates to the game page
When the player clicks the claim route button on a route between "Vancouver" and "Calgary"
And the player selects 3 "Hopper" train cars
And the player clicks the "Claim Route" button
Then the player is on the game page
And the player sees the route from "Vancouver" to "Calgary" claimed with their name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment