diff --git a/bin/vows b/bin/vows index 5147a20..23f32ac 100755 --- a/bin/vows +++ b/bin/vows @@ -257,7 +257,7 @@ if (! options.watch) { // add full path if necessary files = args.map(function (a) { - return (!a.match(/^[\/|c|C]/)) + return (!a.match(/^\/|c:|C:/)) ? path.join(process.cwd(), a) : a; }); diff --git a/test/c-test.js b/test/c-test.js new file mode 100644 index 0000000..21010f9 --- /dev/null +++ b/test/c-test.js @@ -0,0 +1,14 @@ +var vows = require('../lib/vows'), + assert = require('assert'); + +vows.describe("Vows test file starts with c").addBatch({ + + "The test file": { + topic: function () { + return { flag: true }; + }, + "is run": function (topic) { + assert.isTrue(topic.flag); + } + } +}).export(module);