mocha-ier skipAll implementation
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Tue, 10 Jun 2014 19:34:30 +0000 (15:34 -0400)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Tue, 10 Jun 2014 19:34:30 +0000 (15:34 -0400)
test/lib/runner_engine.js

index 6be282e..8608927 100644 (file)
@@ -26,7 +26,9 @@ require:true, __dirname:true, console:true */
 
     var spec = specContents.spec;
 
-    (spec.skipAll ? describe.skip : describe)(spec.recordType + " test", function () {
+    describe(spec.recordType + " test", function () {
+      this.pending = spec.skipAll;
+
       if (_.isString(spec.updatableField)) {
         spec.updateHash = {};
         spec.updateHash[spec.updatableField] = "Test" + Math.random();