Permalink
Browse files

Allow camelCase test filename

  • Loading branch information...
1 parent 03f60dd commit a785630843e8a05455b26efcb0957e992d2d7ec3 @Filirom1 Filirom1 committed with mmalecki Apr 6, 2012
Showing with 16 additions and 2 deletions.
  1. +2 −2 bin/vows
  2. +14 −0 test/VowsCamelCaseTest.js
View
4 bin/vows
@@ -14,10 +14,10 @@ var fileExt, specFileExt;
try {
var coffee = require('coffee-script');
fileExt = /\.(js|coffee)$/;
- specFileExt = /[.(-|_)](test|spec)\.(js|coffee)$/;
+ specFileExt = /[.(-|_)]((t|T)est|(s|S)pec)\.(js|coffee)$/;
} catch (_) {
fileExt = /\.js$/;
- specFileExt = /[.(-|_)](test|spec)\.js$/;
+ specFileExt = /[.(-|_)]((t|T)est|(s|S)pec)\.js$/;
}
var inspect = require('eyes').inspector({
View
14 test/VowsCamelCaseTest.js
@@ -0,0 +1,14 @@
+var vows = require('../lib/vows'),
+ assert = require('assert');
+
+vows.describe("Vows test file with camel case").addBatch({
+
+ "The test file": {
+ topic: function () {
+ return { flag: true };
+ },
+ "is run": function (topic) {
+ assert.isTrue(topic.flag);
+ }
+ }
+}).export(module);

0 comments on commit a785630

Please sign in to comment.