Skip to content

Instantly share code, notes, and snippets.

@diegocasmo
Last active September 28, 2016 01:17
Show Gist options
  • Save diegocasmo/18ca3ed649fb3bccdda697652c1c674b to your computer and use it in GitHub Desktop.
Save diegocasmo/18ca3ed649fb3bccdda697652c1c674b to your computer and use it in GitHub Desktop.
An example scenario written in Gherkin.
Feature: Create an Order
Ubiqua allows salesmen to order products for their clients.
Scenario: Order Some Products
Given I am logged in as a salesman assigned to "Farmacia Moreno", with the following products:
| product_name | price |
| Caja Gatorade | 1.00 |
| Botella Agua | 2.00 |
When I send an order for client "Farmacia Moreno" with the following products:
| product_name | quantity |
| Caja Gatorade | 2 |
| Botella Agua | 4 |
Then the order should have total price $10.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment