     it "removes all tab bar views and stops adding them to new panes", ->
       pane = atom.workspace.getActivePane()
       pane.splitRight()
+      jasmine.attachToDOM(centerElement)
       expect(centerElement.querySelectorAll('.pane').length).toBe 2
       expect(centerElement.querySelectorAll('.pane > .tab-bar').length).toBe 2
 


    describe "when a tab is dragged over a pane item", ->
      beforeEach ->
        layout.activate()

      afterEach ->


  describe ".activate()", ->
    it "appends a tab bar all existing and new panes", ->
      jasmine.attachToDOM(centerElement)
      expect(centerElement.querySelectorAll('.pane').length).toBe 1
      expect(centerElement.querySelectorAll('.pane > .tab-bar').length).toBe 1

