       runs ->
         atom.workspace.getActiveEditor().setText("var test = function() {}")
         atom.workspace.getActiveEditor().save()
-        atom.commands.dispatch(atom.views.getView(atom.workspace), "symbols-view:toggle-file-symbols")
-
-      waitsForPromise ->
-        activationPromise
-
-      waitsFor ->
-        $(atom.views.getView(atom.workspace)).find('.symbols-view').view().error.isVisible()
-
-      runs ->
-        atom.commands.dispatch(atom.views.getView(atom.workspace), "symbols-view:toggle-file-symbols")
+        atom.commands.dispatch(getEditorView(), "symbols-view:toggle-file-symbols")
+
+      waitsForPromise ->
+        activationPromise
+
+      waitsFor ->
+        $(getWorkspaceView()).find('.symbols-view').view().error.isVisible()
+
+      runs ->
+        atom.commands.dispatch(getEditorView(), "symbols-view:toggle-file-symbols")
         atom.workspace.getActiveEditor().setGrammar(atom.syntax.grammarForScopeName('source.js'))
-        atom.commands.dispatch(atom.views.getView(atom.workspace), "symbols-view:toggle-file-symbols")
-        symbolsView = $(atom.views.getView(atom.workspace)).find('.symbols-view').view()
+        atom.commands.dispatch(getEditorView(), "symbols-view:toggle-file-symbols")
+        symbolsView = $(getWorkspaceView()).find('.symbols-view').view()
         expect(symbolsView.loading).toBeVisible()
 
       waitsFor ->

          editor = atom.workspace.getActiveEditor()
          editor.setCursorBufferPosition([6,24])
          spyOn(SymbolsView.prototype, "moveToPosition").andCallThrough()
          atom.commands.dispatch(atom.views.getView(atom.workspace), 'symbols-view:go-to-declaration')

        waitsFor ->
          SymbolsView::moveToPosition.callCount is 1

        runs ->
          expect(editor.getCursorBufferPosition()).toEqual [2,0]
          atom.commands.dispatch(atom.views.getView(atom.workspace), 'symbols-view:return-from-declaration')

        waitsFor ->
          SymbolsView::moveToPosition.callCount is 2


    runs ->
      expect(atom.workspace.getActiveEditor().getCursorBufferPosition()).toEqual [0,0]
      expect($(getWorkspaceView()).find('.symbols-view')).not.toExist()
      atom.commands.dispatch(getEditorView(), "symbols-view:toggle-file-symbols")

    waitsFor ->
      $(getWorkspaceView()).find('.symbols-view').find('li').length

    runs ->
      $(getWorkspaceView()).find('.symbols-view').find('li:eq(1)').mousedown().mouseup()
      expect(atom.workspace.getActiveEditor().getCursorBufferPosition()).toEqual [1,2]

  describe "TagGenerator", ->
