Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[bin test] Added additional teardown test. Update bin/vows to support…

… absolute path. #83
  • Loading branch information...
commit 889b748e5bdce9d28226f443faa6494d394450ec 1 parent c8ee815
@indexzero indexzero authored
Showing with 8 additions and 1 deletion.
  1. +3 −1 bin/vows
  2. +5 −0 test/vows-test.js
View
4 bin/vows
@@ -224,7 +224,9 @@ if (! options.watch) {
reporter.print = _reporter.print;
files = args.map(function (a) {
- return path.join(process.cwd(), a.replace(fileExt, ''));
+ return (!a.match(/^\//))
+ ? path.join(process.cwd(), a.replace(fileExt, ''))
+ : a.replace(fileExt, '');
});
runSuites(importSuites(files), function (results) {
View
5 test/vows-test.js
@@ -350,6 +350,11 @@ vows.describe("Vows with teardowns").addBatch({
"And a final vow": function (topic) {
assert.isTrue(topic.flag);
},
+ 'subcontext': {
+ 'nested': function (_, topic) {
+ assert.isTrue(topic.flag);
+ }
+ },
teardown: function (topic) {
topic.flag = false;
},
Please sign in to comment.
Something went wrong with that request. Please try again.