 			it "should set the version", ->
 				@rclient.set
 					.calledWith("DocVersion:#{@doc_id}", @version)
+					.should.equal true
+
+			it "should set the hash", ->
+				@rclient.set
+					.calledWith("DocHash:#{@doc_id}", @hash)
 					.should.equal true
 				
 			it "should set the ranges", ->

			@rclient.exec.yields()
			@lines = ["one", "two", "three"]
			@version = 42
			@ranges = { comments: "mock", entries: "mock" }
		
		describe "with non-empty ranges", ->

			it "should set the version", ->
				@rclient.set
					.calledWith("DocVersion:#{@doc_id}", @version)
					.should.equal true

			it "should set the hash", ->
				@rclient.set
					.calledWith("DocHash:#{@doc_id}", @hash)
					.should.equal true
				
			it "should set the ranges", ->
