A spec without a function provided should be pending not disabled

Fixes #840
This commit is contained in:
Gregg Van Hove
2015-05-07 13:46:52 -07:00
parent 023c998660
commit add841a1e9
4 changed files with 30 additions and 10 deletions

View File

@@ -50,7 +50,7 @@ getJasmineRequireObj().Spec = function(j$) {
this.onStart(this);
if (!this.isExecutable() || enabled === false) {
if (!this.isExecutable() || this.markedPending || enabled === false) {
complete(enabled);
return;
}
@@ -127,7 +127,7 @@ getJasmineRequireObj().Spec = function(j$) {
};
Spec.prototype.isExecutable = function() {
return !this.disabled && !this.markedPending;
return !this.disabled;
};
Spec.prototype.getFullName = function() {