From 5b54f220a0b9bfe26513d82eff05922dab46759f Mon Sep 17 00:00:00 2001 From: Rob H Date: Fri, 9 May 2014 15:51:22 +1000 Subject: [PATCH] Fix failing BOM ng-spec --- spec/javascripts/unit/bulk_order_management_spec.js.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/javascripts/unit/bulk_order_management_spec.js.coffee b/spec/javascripts/unit/bulk_order_management_spec.js.coffee index 3e1c35f2d1..4a189c7563 100644 --- a/spec/javascripts/unit/bulk_order_management_spec.js.coffee +++ b/spec/javascripts/unit/bulk_order_management_spec.js.coffee @@ -29,9 +29,9 @@ describe "AdminOrderMgmtCtrl", -> scope.initialise "api_key" httpBackend.flush() - expect(scope.suppliers).toEqual [{ id : '', name : 'All' }, 'list of suppliers'] - expect(scope.distributors).toEqual [ { id : '', name : 'All' }, 'list of distributors' ] - expect(scope.orderCycles).toEqual [ { id : '', name : 'All' }, 'oc1', 'oc2', 'oc3' ] + expect(scope.suppliers).toEqual [{ id : '0', name : 'All' }, 'list of suppliers'] + expect(scope.distributors).toEqual [ { id : '0', name : 'All' }, 'list of distributors' ] + expect(scope.orderCycles).toEqual [ { id : '0', name : 'All' }, 'oc1', 'oc2', 'oc3' ] expect(scope.initialiseVariables.calls.length).toBe 1 expect(scope.fetchOrders.calls.length).toBe 1