lib/stub.js
// stub but restore after one call
stub but restore after one call
stub but restore after one call
function stubOnce( objectOrFunction, methodName, overrideMethod ) {
    var _spy = stub.stub(objectOrFunction, methodName, overrideMethod)
        .configure('saveLimit', 10)
        .configure('restoreAfterCalls', 1);
    return _spy;
}
function stubOnce ( objectOrFunction , methodName , overrideMethod ) { var _spy = stub . stub ( objectOrFunction , methodName , overrideMethod ) . configure ( 'saveLimit' , 10 ) . configure ( 'restoreAfterCalls' , 1 ) ; return _spy ; }
stub but restore after one call
stub but restore after one call