         atom.commands.dispatch bufferView.element, 'pane:split-down'
 
       waitsFor ->
-        atom.workspace.getPanes().length is 2
+        getCenter().getPanes().length is 2
 
       waitsFor ->
         atom.workspace.getActiveTextEditor()
 
       runs ->
-        [topPane, bottomPane] = atom.workspace.getPanes()
+        [topPane, bottomPane] = getCenter().getPanes()
         expect(atom.workspace.getActivePane()).toBe bottomPane
         expect(atom.workspace.getActiveTextEditor().getPath()).toBe atom.project.getDirectories()[0].resolve(filePath)
 

        atom.commands.dispatch bufferView.element, 'pane:split-right'

      waitsFor ->
        atom.workspace.getPanes().length is 2

      waitsFor ->
        atom.workspace.getActiveTextEditor()

      runs ->
        [leftPane, rightPane] = atom.workspace.getPanes()
        expect(atom.workspace.getActivePane()).toBe rightPane
        expect(atom.workspace.getActiveTextEditor().getPath()).toBe atom.project.getDirectories()[0].resolve(filePath)

    it "opens the path by splitting the active editor up", ->
      expect(atom.workspace.getPanes().length).toBe 1
      pane = atom.workspace.getActivePane()
      filePath = null



  describe "opening a path into a split", ->
    it "opens the path by splitting the active editor left", ->
      expect(getCenter().getPanes().length).toBe 1
      pane = atom.workspace.getActivePane()
      filePath = null

