 				expect(update.userId).to.equal(@owner._id)
 				expect(update.pathname).to.equal("/1pixel.png")
 				expect(update.newPathname).to.equal("/foo/1pixel.png")
-
-				done()
+				ProjectGetter.getProject @example_project_id, (error, newProject) =>
+					throw error if error?
+					@project_1 = newProject
+					# replacing a file should update the project structure
+					expect(@project_1.version).to.equal(@project_0.version + 2) # 2 because it's a delete and then add
+					done()
 
 		it "should version moving a folder", (done) ->
 			@owner.request.post {

				example_folder_id_1 = JSON.parse(body)._id
				done()

		beforeEach () ->
			MockDocUpdaterApi.clearProjectStructureUpdates()

		it "should version moving a doc", (done) ->
			@owner.request.post {

			expect(update.pathname).to.equal("/new.tex")
			expect(update.docLines).to.be.a('string');

		it "should increment the project structure version number", ->
			expect(@project_1.version).to.equal(@project_0.version + 1)

	describe "uploading a project", ->
		before (done) ->
			MockDocUpdaterApi.clearProjectStructureUpdates()
