 
     it 'should have 1 ticket', () ->
       expect(Ticket.get()).to.be.empty
-      Ticket.set(ticketList)
+      Ticket.set(TestData.ticketList)
       selectable = Ticket.getSelectable()
       expect(selectable).to.have.length(2)
 

  Chrome = null
  TestData = null

  ticketList = null

  beforeEach () ->
    angular.mock.module('timeTracker')
    # initialize object


    it 'should select first ticket', () ->
      expect(Ticket.get()).to.be.empty
      Ticket.set(TestData.ticketList)
      selected = Ticket.getSelected()
      expect(selected[0].id).to.equal(0)

    it 'should not change selected ticket', () ->
      expect(Ticket.get()).to.be.empty
      Project.set(TestData.prjObj)
      Ticket.set(TestData.ticketList)
      Ticket.add(
        id: 3
        text: "ticket3"
