 
         runs ->
           expect(tabBar.tabForItem(imageView)).toExist()
-          expect($(tabBar.tabForItem(imageView)).find('.title')).toHaveClass 'temp'
+          expect($(tabBar.tabForItem(imageView)).find('.title')).not.toHaveClass 'temp'
 
     describe "when double clicking a file in the tree view", ->
       it "makes the tab for that file permanent", ->

      it "removes the 'temp' class", ->
        editor1 = null
        waitsForPromise ->
          atom.workspace.open('sample.txt').then (o) -> editor1 = o

        runs ->
          pane.activateItem(editor1)

        editor2 = null

        waitsForPromise ->
          atom.workspace.open('sample.txt', pending: true).then (o) ->
            editor1 = o
            atom.workspace.open('sample2.txt', pending: true).then (o) ->
              editor2 = o

        runs ->
          expect(editor1.isDestroyed()).toBe true
