Including errors attribute from StandingOrderPrototype in spec

This commit is contained in:
Rob Harrington
2016-11-25 14:41:10 +11:00
parent e92b17a341
commit 534e69fde5

View File

@@ -27,7 +27,7 @@ describe "StandingOrdersCtrl", ->
expect(scope.shop_id).toEqual null
describe "setting shop_id on scope", ->
standingOrder = { id: 5, customer_id: 3, schedule_id: 1}
standingOrder = { errors: {}, id: 5, customer_id: 3, schedule_id: 1 }
standingOrders = [standingOrder]
beforeEach ->