   describe ".initialize(pane)", ->
     it "creates a tab for each item on the tab bar's parent pane", ->
       expect(pane.getItems().length).toBe 3
-      expect(tabBar.find('.tab').length).toBe 3
-
-      expect(tabBar.find('.tab:eq(0) .title').text()).toBe item1.getTitle()
-      expect(tabBar.find('.tab:eq(0) .title')).not.toHaveAttr('data-name')
-      expect(tabBar.find('.tab:eq(0) .title')).not.toHaveAttr('data-path')
-
-      expect(tabBar.find('.tab:eq(1) .title').text()).toBe editor1.getTitle()
-      expect(tabBar.find('.tab:eq(1) .title')).toHaveAttr('data-name', path.basename(editor1.getPath()))
-      expect(tabBar.find('.tab:eq(1) .title')).toHaveAttr('data-path', editor1.getPath())
-
-      expect(tabBar.find('.tab:eq(2) .title').text()).toBe item2.getTitle()
-      expect(tabBar.find('.tab:eq(2) .title')).not.toHaveAttr('data-name')
-      expect(tabBar.find('.tab:eq(2) .title')).not.toHaveAttr('data-path')
+      expect(tabBar.find('tabs-tab').length).toBe 3
+
+      expect(tabBar.find('tabs-tab:eq(0) .title').text()).toBe item1.getTitle()
+      expect(tabBar.find('tabs-tab:eq(0) .title')).not.toHaveAttr('data-name')
+      expect(tabBar.find('tabs-tab:eq(0) .title')).not.toHaveAttr('data-path')
+
+      expect(tabBar.find('tabs-tab:eq(1) .title').text()).toBe editor1.getTitle()
+      expect(tabBar.find('tabs-tab:eq(1) .title')).toHaveAttr('data-name', path.basename(editor1.getPath()))
+      expect(tabBar.find('tabs-tab:eq(1) .title')).toHaveAttr('data-path', editor1.getPath())
+
+      expect(tabBar.find('tabs-tab:eq(2) .title').text()).toBe item2.getTitle()
+      expect(tabBar.find('tabs-tab:eq(2) .title')).not.toHaveAttr('data-name')
+      expect(tabBar.find('tabs-tab:eq(2) .title')).not.toHaveAttr('data-path')
 
     it "highlights the tab for the active pane item", ->
-      expect(tabBar.find('.tab:eq(2)')).toHaveClass 'active'
+      expect(tabBar.find('tabs-tab:eq(2)')).toHaveClass 'active'
 
   describe "when the active pane item changes", ->
     it "highlights the tab for the new active pane item", ->
       pane.activateItem(item1)
       expect(tabBar.find('.active').length).toBe 1
-      expect(tabBar.find('.tab:eq(0)')).toHaveClass 'active'
+      expect(tabBar.find('tabs-tab:eq(0)')).toHaveClass 'active'
 
       pane.activateItem(item2)
       expect(tabBar.find('.active').length).toBe 1
-      expect(tabBar.find('.tab:eq(2)')).toHaveClass 'active'
+      expect(tabBar.find('tabs-tab:eq(2)')).toHaveClass 'active'
 
   describe "when a new item is added to the pane", ->
     it "adds a tab for the new item at the same index as the item in the pane", ->
       pane.activateItem(item1)
       item3 = new TestView('Item 3')
       pane.activateItem(item3)
-      expect(tabBar.find('.tab').length).toBe 4
+      expect(tabBar.find('tabs-tab').length).toBe 4
       expect($(tabBar.tabAtIndex(1)).find('.title')).toHaveText 'Item 3'
 
     it "adds the 'modified' class to the new tab if the item is initially modified", ->

      expect(pane.getItems().indexOf(editor1)).toBe -1
      expect(editor1.destroyed).toBeTruthy()
      expect(tabBar.getTabs().length).toBe 2
      expect(tabBar.find('.tab:contains(sample.js)')).not.toExist()

  describe "when a tab's close icon is clicked", ->
    it "destroys the tab's item on the pane", ->

        waitsFor ->
          tabBar.tabForItem(item1).updateIconVisibility.callCount > 0

        expect(tabBar.find('tabs-tab:eq(0) .title')).not.toHaveClass "hide-icon"

  describe "when the item doesn't have an icon defined", ->
    it "doesn't display an icon on the tab", ->
      expect(tabBar.find('tabs-tab:eq(2) .title')).not.toHaveClass "icon"
      expect(tabBar.find('tabs-tab:eq(2) .title')).not.toHaveClass "icon-squirrel"

    it "shows the icon on the tab if an icon is defined", ->
      item2.getIconName = -> "squirrel"
      item2.emitIconChanged()
      expect(tabBar.find('tabs-tab:eq(2) .title')).toHaveClass "icon"
      expect(tabBar.find('tabs-tab:eq(2) .title')).toHaveClass "icon-squirrel"

  describe "when a tab item's modified status changes", ->
    it "adds or removes the 'modified' class to the tab based on the status", ->
