Skip to content

Instantly share code, notes, and snippets.

@pbattisson
Created December 17, 2013 17:34
Show Gist options
  • Save pbattisson/8009091 to your computer and use it in GitHub Desktop.
Save pbattisson/8009091 to your computer and use it in GitHub Desktop.
Calculator example for BDD in Apex on Force.com
Feature: Addition
In order to avoid silly mistakes
As a math idiot
I want to be told the sum of 2 numbers
Scenario: Add two numbers
Given I have a calculator
And I have entered 50 into the calculator
And I have entered 70 into the calculator
When I press add
Then the result should be 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment