 
     describe "when autoscrolling at the end of the document", ->
       it "renders lines properly", ->
-        editorView.edit(project.openSync('two-hundred.txt'))
+        editorView.edit(atom.project.openSync('two-hundred.txt'))
         editorView.attachToDom(heightInLines: 5.5)
 
         expect(editorView.renderedLines.find('.line').length).toBe 8

    beforeEach ->
      filePath = atom.project.resolve('git/working-dir/file.txt')
      originalPathText = fs.readFileSync(filePath, 'utf8')
      editorView.edit(project.openSync(filePath))

    afterEach ->
      fs.writeFileSync(filePath, originalPathText)

      oldBuffer = editorView.getBuffer()
      editorView.on 'editor:path-changed', eventHandler

      editorView.edit(atom.project.openSync(filePath))
      expect(eventHandler).toHaveBeenCalled()

      eventHandler.reset()
