 					.calledWith("v": -1)
 					.should.equal true
 
-			it "should not limit the results", ->
-				@db.docHistory.limit
-					.called.should.equal false
-
-			it "should call the call back with the updates", ->
-				@callback.calledWith(null, @updates).should.equal true
+			#it "should not limit the results", ->
+			#	@db.docHistory.limit
+			#		.called.should.equal false
+
+			it "should call the call back with the results", ->
+				@callback.calledWith(null, @updates_between).should.equal true
 
 		describe "without a to version", ->
 			beforeEach ->

					.should.equal true

			it "should call the call back with the updates", ->
				@callback.calledWith(null, @updates).should.equal true

		describe "with a limit", ->
			beforeEach ->


	describe "getDocUpdates", ->
		beforeEach ->
			@results = [
				{foo: "mock-update", v: 56},
				{foo: "mock-update", v: 55},
				{foo: "mock-update", v: 42},
				{foo: "mock-update", v: 41}
			]
			@updates_between = [
				{foo: "mock-update", v: 55},
				{foo: "mock-update", v: 42}
			]
			@updates_after = [
				{foo: "mock-update", v: 56},
				{foo: "mock-update", v: 55},
				{foo: "mock-update", v: 42}
			]
			@db.docHistory = {}
			@db.docHistory.find = sinon.stub().returns @db.docHistory
			@db.docHistory.sort = sinon.stub().returns @db.docHistory
			@db.docHistory.limit = sinon.stub().returns @db.docHistory
			@db.docHistory.toArray = sinon.stub().callsArgWith(0, null, @results)

			@from = 42
			@to   = 55
