Skip to content

Commit

Permalink
Merge pull request #26 from Tout/table_support
Browse files Browse the repository at this point in the history
Issue #16 Support for table-based steps - current tests pass
  • Loading branch information
Paul Covell committed Feb 18, 2012
2 parents 858b197 + 40ff1cd commit 9f4b73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kyuri/runners/cucumber.js
Expand Up @@ -106,7 +106,7 @@ Cucumber.prototype.run = function (features, steps, callback) {
Object.keys(step).forEach(function (i) {
exampleStep[i] = step[i].slice(0); // copy the array
scenario.exampleVariables.forEach(function (variable) {
exampleStep[i][1] = exampleStep[i][1].replace('\<' + variable + '\>', example[variable]);
exampleStep[i][1] = exampleStep[i][1].replace('\<' + variable + '\>', '"' + example[variable] + '"');
});
});
steps.push(exampleStep);
Expand Down

0 comments on commit 9f4b73f

Please sign in to comment.