 
     describe "when a tab is dragged over a pane item", ->
       beforeEach ->
+        jasmine.attachToDOM(atom.workspace.getElement())
         layout.activate()
 
       afterEach ->

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



  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

