Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created October 18, 2013 20:08
Show Gist options
  • Select an option

  • Save efleming969/7047483 to your computer and use it in GitHub Desktop.

Select an option

Save efleming969/7047483 to your computer and use it in GitHub Desktop.
module.exports = function () {
this.Given(/^(\d+) completed tasks$/, function(arg1, callback) {
// express the regexp above with the code you wish you had
callback.pending();
});
this.Given(/^(\d+) incomplete tasks$/, function(arg1, callback) {
// express the regexp above with the code you wish you had
callback.pending();
});
this.When(/^I visit the tasks view$/, function(callback) {
// express the regexp above with the code you wish you had
callback.pending();
});
this.When(/^filter by completed status$/, function(callback) {
// express the regexp above with the code you wish you had
callback.pending();
});
this.Then(/^I should see (\d+) tasks$/, function(arg1, callback) {
// express the regexp above with the code you wish you had
callback.pending();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment