update tests

This commit is contained in:
Brian Gough 2015-11-30 15:22:21 +00:00
parent 7a9577e081
commit 4bf90afe0e

View file

@ -24,7 +24,7 @@ describe "DocumentUpdater - flushDocIfLoaded", ->
describe "when the doc is in Redis", -> describe "when the doc is in Redis", ->
beforeEach -> beforeEach ->
@RedisManager.getDoc = sinon.stub().callsArgWith(1, null, @lines, @version) @RedisManager.getDoc = sinon.stub().callsArgWith(1, null, @lines, @version)
@TrackChangesManager.flushDocChanges = sinon.stub().callsArg(2) @TrackChangesManager.flushDocChangesIfNeeded = sinon.stub().callsArg(2)
@PersistenceManager.setDoc = sinon.stub().callsArgWith(4) @PersistenceManager.setDoc = sinon.stub().callsArgWith(4)
@DocumentManager.flushDocIfLoaded @project_id, @doc_id, @callback @DocumentManager.flushDocIfLoaded @project_id, @doc_id, @callback