 					.should.equal true
 
 			it "should call the call back with the updates", ->
-				@callback.calledWith(null, @results).should.equal true
+				@callback.calledWith(null, @updates_all).should.equal true
 
 		describe "with a limit", ->
 			beforeEach ->

	describe "getDocUpdates", ->
		beforeEach ->
			@results = [
				{foo: "mock-update", v: 56, meta: {end_ts: 110}},
				{foo: "mock-update", v: 55, meta: {end_ts: 100}},
				{foo: "mock-update", v: 42, meta:{end_ts: 90}}
			]
			@updates = [
				{foo: "mock-update", v: 55, meta: {end_ts: 100}},
				{foo: "mock-update", v: 42, meta:{end_ts: 90}}
			]
			@db.docHistory = {}
			@db.docHistory.find = sinon.stub().returns @db.docHistory
			@db.docHistory.sort = sinon.stub().returns @db.docHistory

					.called.should.equal false

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

		describe "without a before timestamp", ->
			beforeEach ->
