       resultRemovedSpy = jasmine.createSpy()
 
       waitsForPromise ->
-        atom.workspaceView.open()
+        atom.workspace.open()
 
       runs ->
         resultsModel.onDidAddResult resultAddedSpy

path = require 'path'

{$, WorkspaceView} = require 'atom'

ResultsModel = require '../lib/project/results-model'


        searchPromise

      runs ->
        editor = atom.workspace.getActiveEditor()
        editor.setText('items\nitems')
        spyOn(editor, 'scan').andCallThrough()
        advanceClock(editor.buffer.stoppedChangingDelay)
