diff --git a/bin/vows b/bin/vows index 81b1274..5220864 100755 --- a/bin/vows +++ b/bin/vows @@ -196,12 +196,11 @@ if (args.length === 0 || options.watch) { msg('bin', 'discovered', "./" + testFolder); if (args.length === 0) { args = paths(testFolder).filter(function (f) { - return new(RegExp)('(-|_)' + testFolder + '.(js|coffee)$').test(f); + return specFileExt.test(f); }); if (options.watch) { - args = args.concat(paths('lib'), - paths('src')); + args = args.concat(paths('lib'), paths('src')); } } }