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

@@ -119,7 +119,6 @@ describe("Spec", function() {
queueRunnerFactory: fakeQueueRunner
});
expect(spec.status()).toBe('pending');
});
@@ -402,13 +401,13 @@ describe("Spec", function() {
expect(spec.isExecutable()).toBe(false);
});
it("should not be executable when pending", function() {
it("should be executable when pending", function() {
var spec = new j$.Spec({
queueableFn: { fn: function() {} }
});
spec.pend();
expect(spec.isExecutable()).toBe(false);
expect(spec.isExecutable()).toBe(true);
});
it("should be executable when not disabled or pending", function() {