Skip to content

Commit

Permalink
fix for issue 248. file starts with a c
Browse files Browse the repository at this point in the history
  • Loading branch information
stammen committed Nov 20, 2012
1 parent c683d88 commit 4c53be1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
14 changes: 14 additions & 0 deletions test/c-test.js
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 4c53be1

Please sign in to comment.