 		describe "with no updates", ->
 			beforeEach ->
 				@RedisManager.getDocVersion.withArgs(@doc_id).yields(null, @version)
-				@RedisManager.updateDocument @doc_id, @lines, @version, [], @callback
+				@RedisManager.updateDocument @doc_id, @lines, @version, [], @track_changes_entries, @callback
 			
 			it "should not do an rpush", ->
 				@rclient.rpush

		describe "with an inconsistent version", ->
			beforeEach ->
				@RedisManager.getDocVersion.withArgs(@doc_id).yields(null, @version - @ops.length - 1)
				@RedisManager.updateDocument @doc_id, @lines, @version, @ops, @callback
			
			it "should not call multi.exec", ->
				@rclient.exec.called.should.equal false

		it "should set the version", ->
			@rclient.set
				.calledWith("DocVersion:#{@doc_id}", @version)
				.should.equal true
			
		it "should set the track changes entries", ->
			@rclient.set
				.calledWith("TrackChangesEntries:#{@doc_id}", JSON.stringify(@track_changes_entries))
				.should.equal true
			
		it "should set the track changes state", ->
			@rclient.set
				.calledWith("TrackChangesEnabled:#{@doc_id}", "1")
				.should.equal true
		
		it "should set the project_id for the doc", ->
