     EnterpriseFee = null
 
     beforeEach ->
-      scope = {}
+      scope = { order_cycle_form: { $dirty: false}}
       event =
         preventDefault: jasmine.createSpy('preventDefault')
       OrderCycle =

    it 'Submits the order cycle via OrderCycle update', ->
      scope.submit('/admin/order_cycles')
      expect(OrderCycle.update).toHaveBeenCalledWith('/admin/order_cycles')


describe 'OrderCycle services', ->

      scope.removeExchange(event, 'exchange')
      expect(event.preventDefault).toHaveBeenCalled()
      expect(OrderCycle.removeExchange).toHaveBeenCalledWith('exchange')
      expect(scope.order_cycle_form.$dirty).toEqual true

    it 'Adds coordinator fees', ->
      scope.addCoordinatorFee(event)
