 				@rclient.sadd
 					.calledWith("DocsIn:#{@project_id}", @doc_id)
 					.should.equal true
+
+			it 'should not log any errors', ->
+				@logger.error.calledWith()
+					.should.equal false
 	
 		describe "with empty ranges", ->
 			beforeEach (done) ->

			@rclient.sadd = sinon.stub().yields()
			@rclient.del = sinon.stub()
			@rclient.eval = sinon.stub()
			@rclient.exec.yields()
			@lines = ["one", "two", "three"]
			@version = 42
			@hash = crypto.createHash('sha1').update(JSON.stringify(@lines)).digest('hex')
			@ranges = { comments: "mock", entries: "mock" }
		
		describe "with non-empty ranges", ->

			@hash = crypto.createHash('sha1').update(JSON.stringify(@lines)).digest('hex')
			@ranges = { comments: "mock", entries: "mock" }

			@rclient.exec = sinon.stub().callsArg(0, null, [@hash])

		describe "with a consistent version", ->
			beforeEach ->
