       tempFilePath = null
 
       beforeEach ->
-        rootView.remove()
+        rootView.deactivate()
 
         tempFilePath = '/tmp/atom-temp.txt'
         fs.write(tempFilePath, "")
-        rootView = new RootView(tempFilePath)
+        new RootView(tempFilePath)
         editor = rootView.getActiveEditor()
         project = rootView.project
 

    cachedLineHeight

  beforeEach ->
    rootView = new RootView(require.resolve('fixtures/sample.js'))
    project = rootView.project
    editor = rootView.getActiveEditor()
    buffer = editor.getBuffer()

fs = require 'fs'

describe "Editor", ->
  [project, buffer, editor, cachedLineHeight] = []

  getLineHeight = ->
    return cachedLineHeight if cachedLineHeight?
