Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleaning up travis to remove trying to install bundler, actually impl…
…emented scenario outline steps, implemented snipper builder steps for example outline snippets
- Loading branch information
1 parent
60b437c
commit d8efad6
Showing
5 changed files
with
33 additions
and
31 deletions.
There are no files selected for viewing
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
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
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
40 changes: 16 additions & 24 deletions
40
features/step_definitions/missing_steps.js → ...nitions/step_definition_snippets_steps.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,38 @@ | ||
var missing_steps = function() { | ||
var Given = When = Then = this.defineStep; | ||
var World = require('./cucumber_world').World; | ||
this.World = World; | ||
var stepDefinitionSnippetsSteps = function() { | ||
var Given = When = Then = this.defineStep; | ||
var World = require('./cucumber_world').World; | ||
this.World = World; | ||
|
||
this.Given(/^the step "([^"]*)" has a mapping asynchronously failing through an exception with the message "([^"]*)"$/, function (arg1, arg2, callback) { | ||
// express the regexp above with the code you wish you had | ||
callback.pending(); | ||
}); | ||
|
||
this.Then(/^it should pass with:$/, function (string, callback) { | ||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I am a happy veggie \\\\o\\\/\$\/ is suggested$/, function (arg1, callback) { | ||
// express the regexp above with the code you wish you had | ||
callback.pending(); | ||
}); | ||
|
||
this.Given(/^a mapping written in CoffeeScript$/, function (callback) { | ||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I type \\\-\\\[\\\]\\\{\\\}\\\(\\\)\\\*\\\+\\\?\\\.\\\\\\\^\\\$\\\|\\\#\\\/\$\/ is suggested$/, function (arg1, callback) { | ||
// express the regexp above with the code you wish you had | ||
callback.pending(); | ||
}); | ||
|
||
this.Given(/^a mapping written in PogoScript$/, function (callback) { | ||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I have \(\\d\+\) "([^"]*)"\]\*\)" cucumbers\$\/ with (\d+) parameters is suggested$/, function (arg1, arg2, arg3, callback) { | ||
// express the regexp above with the code you wish you had | ||
callback.pending(); | ||
}); | ||
|
||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I am a happy veggie \\\\o\\\/\$\/ is suggested$/, function (arg1, callback) { | ||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I have some "([^"]*)"\]\*\)"([^"]*)"\(\[\^"([^"]*)" and "([^"]*)"\]\*\)" cucumbers\$\/ with (\d+) parameters is suggested$/, function (arg1, arg2, arg3, arg4, arg5, arg6, callback) { | ||
// express the regexp above with the code you wish you had | ||
callback.pending(); | ||
}); | ||
|
||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I type \\\-\\\[\\\]\\\{\\\}\\\(\\\)\\\*\\\+\\\?\\\.\\\\\\\^\\\$\\\|\\\#\\\/\$\/ is suggested$/, function (arg1, callback) { | ||
// express the regexp above with the code you wish you had | ||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I have "([^"]*)" cucumbers\$\/ with (\d+) parameters is suggested$/, function (arg1, arg2, arg3, callback) { | ||
callback.pending(); | ||
}); | ||
|
||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I have \(\\d\+\) "([^"]*)"\]\*\)" cucumbers\$\/ with (\d+) parameters is suggested$/, function (arg1, arg2, arg3, callback) { | ||
// express the regexp above with the code you wish you had | ||
callback.pending(); | ||
this.Then(/^a "([^"]*)" example step definition snippet for \/\^I have "([^"]*)" cucumbers\$\/ with (\d+) parameters is suggested$/, function (arg1, arg2, arg3, callback) { | ||
this.assertEqual(arg1, "Given"); | ||
this.assertEqual(arg2,'(.*)'); | ||
this.assertEqual(arg3,"1"); | ||
callback(); | ||
}); | ||
} | ||
|
||
this.Then(/^a "([^"]*)" step definition snippet for \/\^I have some "([^"]*)"\]\*\)"([^"]*)"\(\[\^"([^"]*)" and "([^"]*)"\]\*\)" cucumbers\$\/ with (\d+) parameters is suggested$/, function (arg1, arg2, arg3, arg4, arg5, arg6, callback) { | ||
// express the regexp above with the code you wish you had | ||
callback.pending(); | ||
}); | ||
}; | ||
module.exports = missing_steps; | ||
module.exports = stepDefinitionSnippetsSteps; |
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