@@ -918,7 +918,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
|
||||
this.xit = function() {
|
||||
var spec = this.it.apply(this, arguments);
|
||||
spec.pend();
|
||||
spec.pend('Temporarily disabled with xit');
|
||||
return spec;
|
||||
};
|
||||
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -416,7 +416,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
|
||||
this.xit = function() {
|
||||
var spec = this.it.apply(this, arguments);
|
||||
spec.pend();
|
||||
spec.pend('Temporarily disabled with xit');
|
||||
return spec;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user