Skip to content

Commit

Permalink
Allow camelCase test filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Filirom1 authored and mmalecki committed Jun 17, 2012
1 parent 03f60dd commit a785630
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
14 changes: 14 additions & 0 deletions test/VowsCamelCaseTest.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 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.