Permalink
Browse files

Merge pull request #26 from Tout/table_support

Issue #16 Support for table-based steps - current tests pass
  • Loading branch information...
2 parents 858b197 + 40ff1cd commit 9f4b73f4520aaf49f9bc7c756b301e34784da70b @pacovell pacovell committed Feb 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/kyuri/runners/cucumber.js
@@ -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);

0 comments on commit 9f4b73f

Please sign in to comment.