Skip to content

Instantly share code, notes, and snippets.

@rpearce
Created October 21, 2011 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rpearce/1303006 to your computer and use it in GitHub Desktop.
Save rpearce/1303006 to your computer and use it in GitHub Desktop.
Cucumber Lightning Feature
Feature: Harness lightning
In order to make electricity work
As a scientist
I want to harness the power of lightning... or something like that
Background:
Given I am an inquisitive scientist
And I do not suffer from any mental illness(es)
Scenario: Using a kite
Given I tie a key to a kite string
When I go out in the middle of a storm
And the kite is struck by lightning
Then I should figure out a way to not die from this
And I should somehow discover electricity
@rpearce
Copy link
Author

rpearce commented Apr 11, 2012 via email

@rpearce
Copy link
Author

rpearce commented Apr 11, 2012

TL;DR--it's an example of the Given...When...Then... Nature of the Cucumber testing framework. There are a few links to it and many tutorials and guides on my Rails Need To Know app.

Best,
Robert

@spencerfdavis
Copy link

This is stupid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment