Skip to content

Instantly share code, notes, and snippets.

@rianby64
Last active January 14, 2016 20:32
Show Gist options
  • Save rianby64/d998669d07f5582a186e to your computer and use it in GitHub Desktop.
Save rianby64/d998669d07f5582a186e to your computer and use it in GitHub Desktop.
'use strict';
loadFeature('features/simpleStory.feature');
feature('Refund item', function() {
scenario(/(\w+) returns a faulty microwave/, function(user) {
given(/(\w+) has bought a microwave for \$(\d+)/, function(client, summa) {
});
and('he has a receipt', function() {
});
when('he returns the microwave', function() {
});
then(/(\w+) should be refunded \$(\d+)/, function(client, summa) {
});
});
});
var errors = run();
if (errors.length) {
console.log(errors);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment