Updating spec to new Jasmine syntax

This commit is contained in:
Rob Harrington
2016-05-13 16:30:12 +10:00
parent 93a4f19b40
commit 162b11dcc5

View File

@@ -328,7 +328,7 @@ describe 'OrderCycle controllers', ->
scope.submit(eventMock,'/admin/order_cycles')
expect(eventMock.preventDefault).toHaveBeenCalled()
expect(OrderCycle.update).toHaveBeenCalledWith('/admin/order_cycles')
expect(scope.order_cycle_form.$setPristine.calls.length).toEqual 1
expect(scope.order_cycle_form.$setPristine.calls.count()).toEqual 1
describe 'OrderCycle services', ->