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

fs = require 'fs'

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

  getLineHeight = ->
    return cachedLineHeight if cachedLineHeight?

      tempFilePath = null

      beforeEach ->
        rootView.deactivate()

        tempFilePath = '/tmp/atom-temp.txt'
        fs.write(tempFilePath, "")
        new RootView(tempFilePath)
        editor = rootView.getActiveEditor()
        project = rootView.project

