Browse files

fixing some issues with cli step / json formatter feature on windows

  • Loading branch information...
1 parent bc7b840 commit a0380719e4b51f8539f6bc14de3f28ec2c736e8a @vantreeseba vantreeseba committed Feb 11, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 features/step_definitions/cli_steps.js
View
4 features/step_definitions/cli_steps.js
@@ -79,9 +79,9 @@ var cliSteps = function cliSteps() {
var actualError = lastRun['error'];
var actualStderr = lastRun['stderr'];
- expectedOutput = expectedOutput.replace(/<current-directory>/g, tmpDir);
+ expectedOutput = expectedOutput.replace(/<current-directory>/g, tmpDir.replace(/\\/g,'/'));
- try { var actualJson = JSON.parse(actualOutput); }
+ try { var actualJson = JSON.parse(actualOutput.replace(/\\\\/g,'/')); }
catch(err) { throw new Error("Error parsing actual JSON:\n" + actualOutput); }
try { var expectedJson = JSON.parse(expectedOutput); }

0 comments on commit a038071

Please sign in to comment.