     EnterpriseFee = null
 
     beforeEach ->
-      scope = {}
+      scope =
+        order_cycle_form: jasmine.createSpyObj('order_cycle_form', ['$dirty', '$setPristine'])
+        $watch: jasmine.createSpy('$watch')
       event =
         preventDefault: jasmine.createSpy('preventDefault')
       location =

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


describe 'OrderCycle services', ->

    EnterpriseFee = null

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