Permalink
Browse files

fix for issue 248. file starts with a c

  • Loading branch information...
stammen committed Nov 20, 2012
1 parent c683d88 commit 4c53be1769ea0eb49e1c5ec5736acf4f9fdb9ad3
Showing with 15 additions and 1 deletion.
  1. +1 −1 bin/vows
  2. +14 −0 test/c-test.js
View
@@ -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;
});
View
@@ -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.