     workspaceElement = atom.views.getView(atom.workspace)
     listView = new ProjectsListView
     {list, filterEditorView} = listView
-    listView.show(projects())
 
   it "will list all projects", ->
+    listView.show(projects())
     expect(list.find('li').length).toBe 2
 
   it "will add the correct icon to each project", ->
+    listView.show(projects())
     icon1 = list.find('li[data-project-title="Test project 1"]').find('.icon')
     icon2 = list.find('li[data-project-title="Test project 2"]').find('.icon')
     expect(icon1.attr('class')).toContain 'icon-chevron-right'


      expect(listView.getFilterKey()).toBe listView.defaultFilterKey
      expect(listView.getFilterQuery()).toBe '1'
      expect(list.find('li').length).toBe 1
  data =
    testproject1:
      title: "Test project 1"
      paths: ["/Users/project-1"]
    testproject2:
      title: "Test project 2"
      paths: ["/Users/project-2"]
      template: "test-template"
      icon: "icon-bug"
      group: "Test"

  projects = ->
    array = []
