spec/lockSpec.js
function(lock) {
    lock.acquire = function(key, fn) {
      Lock._acquiredLocks[lock._id] = lock;
      lock._locked = true;
      lock._key = key;
      return client.setAsync(key, lock._id).nodeify(fn);
    };
  }
function(lock) {
    lock.acquire = function(key, fn) {
      Lock._acquiredLocks[lock._id] = lock;
      lock._locked = true;
      lock._key = key;
      return client.setAsync(key, lock._id).nodeify(fn);
    };
  }
function ( lock ) { lock . acquire = function ( key , fn ) { Lock . _acquiredLocks [ lock . _id ] = lock ; lock . _locked = true ; lock . _key = key ; return client . setAsync ( key , lock . _id ) . nodeify ( fn ) ; } ; }
Used to mock a Lock's acquire method
Used to mock a Lock s acquire method