Suites still run their children even if none are executable

- Continue skipping beforeAll and afterAll

Fixes #707
This commit is contained in:
slackersoft
2014-11-16 14:43:44 -08:00
parent 25c546a904
commit 23a492cb65
4 changed files with 24 additions and 15 deletions

View File

@@ -89,13 +89,12 @@ getJasmineRequireObj().Suite = function() {
var allFns = [];
for (var i = 0; i < this.children.length; i++) {
allFns.push(wrapChildAsAsync(this.children[i]));
}
if (this.isExecutable()) {
allFns = allFns.concat(this.beforeAllFns);
for (var i = 0; i < this.children.length; i++) {
allFns.push(wrapChildAsAsync(this.children[i]));
}
allFns = this.beforeAllFns.concat(allFns);
allFns = allFns.concat(this.afterAllFns);
}