Skip to content

Commit

Permalink
Initial fix for table step generation - passes current tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-at-tout committed Jan 11, 2012
1 parent 858b197 commit 40ff1cd
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 40ff1cd

Please sign in to comment.