Skip to content

Instantly share code, notes, and snippets.

@fsouza
Created June 23, 2010 14:50
Show Gist options
  • Save fsouza/450022 to your computer and use it in GitHub Desktop.
Save fsouza/450022 to your computer and use it in GitHub Desktop.
Feature: Division
In order to avoid silly mistakes
Cashiers must be able to calculate a fraction
Scenario: Regular numbers
Given I have entered 3 into the calculator
And I have entered 2 into the calculator
When I press divide
Then the result should be 1.5 on the screen
@raises_exception
Scenario: Division by 0
Given I have entered 3 into the calculator
And I have entered 0 into the calculator
When I press divide
Then something strange happens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment