Commit 9286fded 9286fded1adc29944a31553f2ea596dbac844fa2 by Nicolas Perriault

fixes #140 - 'casper test' now resolves local paths urls

1 parent 93592673
......@@ -41,7 +41,7 @@ casper.options.logLevel = casper.cli.get('log-level') || "error";
// overriding Casper.open to prefix all test urls
casper.setFilter('open.location', function(location) {
if (!/^http/.test(location)) {
return f('file://%s/%s', phantom.casperPath, location);
return f('file://%s/%s', fs.workingDirectory, location);
}
return location;
});
......