 
 describe 'Main Tests', ->
   activationPromise = null
-  treeViewPromise = null
   loginView = null
   sparkIde = null
   originalProfile = null


  describe 'when the spark-ide:rename-core event is triggered', ->
    it 'calls renameCore() method', ->
      waitsForPromise ->
        treeViewPromise

      runs ->
        spyOn sparkIde, 'renameCore'
        atom.workspaceView.trigger 'spark-ide:rename-core'
        expect(sparkIde.renameCore).toHaveBeenCalled()
        jasmine.unspy sparkIde, 'renameCore'


  describe 'when the spark-ide:remove-core event is triggered', ->


  describe 'when the spark-ide:claim-core-manually event is triggered', ->
    it 'calls claimCoreManually() method', ->
      spyOn sparkIde, 'claimCoreManually'
      atom.workspaceView.trigger 'spark-ide:claim-core-manually'
      expect(sparkIde.claimCoreManually).toHaveBeenCalled()
      jasmine.unspy sparkIde, 'claimCoreManually'
