Skip to content
Browse files

removing step_definition_snippet_steps that were not implemented

  • Loading branch information...
1 parent d8efad6 commit bc7b8400be459e77849ffdf1a375d0024bbd82a2 @vantreeseba vantreeseba committed Feb 10, 2014
View
7 features/step_definitions/scenario_outline_steps.js
@@ -4,15 +4,14 @@ var scenario_outline_steps = function() {
this.World = World;
this.When(/^a (.*) step$/, function (some, callback) {
- this.assertTrue(some === "passing" || some === "failing");
- callback();
+ this.assertTrue(some === "passing" || some === "failing");
+ callback();
});
this.Then(/^i get (.*)$/, function (result, callback) {
this.assertTrue(result === "passed" || result === "skipped");
- callback();
+ callback();
});
-
}
module.exports = scenario_outline_steps;
View
32 features/step_definitions/step_definition_snippets_steps.js
@@ -3,34 +3,10 @@ var stepDefinitionSnippetsSteps = function() {
var World = require('./cucumber_world').World;
this.World = World;
- 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.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.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 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 have "([^"]*)" cucumbers\$\/ with (\d+) parameters is suggested$/, function (arg1, arg2, arg3, callback) {
- 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");
+ this.Then(/^a "([^"]*)" example step definition snippet for \/\^I have "([^"]*)" cucumbers\$\/ with (\d+) parameters is suggested$/, function (stepName, snippetParameter, paramCount, callback) {
+ this.assertEqual(stepName, "Given");
+ this.assertEqual(snippetParameter,'(.*)');
+ this.assertEqual(paramCount,"1");
callback();
});
}

0 comments on commit bc7b840

Please sign in to comment.
Something went wrong with that request. Please try again.