Skip to content

Instantly share code, notes, and snippets.

@cjgiridhar
Created October 11, 2012 05:00
Show Gist options
  • Save cjgiridhar/3870272 to your computer and use it in GitHub Desktop.
Save cjgiridhar/3870272 to your computer and use it in GitHub Desktop.
Lettuce Example Python BDD
Feature: Compute fibonacci
In order to play with Lettuce
As beginners
We'll implement fibonacci
Scenario: Fibonacci of 0
Given I have the number 0
When I compute its fibonacci
Then I see the number 1
Scenario: Fibonacci of 1
Given I have the number 1
When I compute its fibonacci
Then I see the number 1
Scenario: Fibonacci of 2
Given I have the number 2
When I compute its fibonacci
Then I see the number 2
Scenario: Fibonacci of 3
Given I have the number 3
When I compute its fibonacci
Then I see the number 3
Scenario: Fibonacci of 4
Given I have the number 4
When I compute its fibonacci
Then I see the number 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment