         expect(pane.getItems().length).toBe 1
         expect(tabBar).toHaveClass 'hidden'
 
-  describe "when usePreviewTabs is true in package settings", ->
+  describe "when tab is pending", ->
     beforeEach ->
-      atom.config.set("tabs.usePreviewTabs", true)
       pane.destroyItems()
 
     describe "when opening a new tab", ->
       it "adds tab with class 'temp'", ->
         editor1 = null
         waitsForPromise ->
-          atom.workspace.open('sample.txt').then (o) -> editor1 = o
+          atom.workspace.open('sample.txt', pending: true).then (o) -> editor1 = o
 
         runs ->
           pane.activateItem(editor1)

        editor2 = null

        waitsForPromise ->
          atom.workspace.open('sample.txt').then (o) ->
            editor1 = o
            pane.activateItem(editor1)
            atom.workspace.open('sample2.txt').then (o) ->
              editor2 = o
              pane.activateItem(editor2)

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

          workspaceElement.querySelector('.tree-view')

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

        runs ->
          expect($(tabBar.tabForItem(editor1)).find('.title')).toHaveClass 'temp'

          fileNode = workspaceElement.querySelector(".tree-view [data-path=\"#{path.join(__dirname, 'fixtures', 'sample.js')}\"]")
