Change #xit so that it will output a more BDD-style pending message

This commit is contained in:
Cody Sehl
2015-10-14 21:03:47 -06:00
parent 141fd910f2
commit e5c2572753
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -45,4 +45,15 @@ describe("Env", function() {
throwOnExpectationFailure: true
}));
});
describe('#xit', function() {
it('calls spec.pend with "Temporarily disabled with xit"', function() {
var pendSpy = jasmine.createSpy();
spyOn(env, 'it').and.returnValue({
pend: pendSpy
});
env.xit();
expect(pendSpy).toHaveBeenCalledWith('Temporarily disabled with xit');
});
});
});