Created
October 27, 2014 10:30
-
-
Save nelstrom/2b103d186e9c681f65fb to your computer and use it in GitHub Desktop.
Given-When-Then test style proposal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feature('foo bar', { | |
given: function() { | |
visit('/'); | |
}, | |
when: function() { | |
fillIn('#some-field', 'foo'); | |
click('button:contains("Submit")'); | |
}, | |
then: function() { | |
expectContent('Error BAZ'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment