Add loading splash to BOM

This commit is contained in:
Rob H
2014-02-22 14:49:19 +11:00
parent 83e228dc63
commit 1f569e4be1
4 changed files with 22 additions and 6 deletions

View File

@@ -44,6 +44,14 @@ describe "AdminOrderMgmtCtrl", ->
httpBackend.flush()
expect(scope.resetOrders).toHaveBeenCalledWith "list of orders"
it "sets the loading property to true before fetching orders and unsets it when loading is complete", ->
spyOn scope, "resetOrders"
scope.fetchOrders()
expect(scope.loading).toEqual true
httpBackend.flush()
expect(scope.loading).toEqual false
describe "resetting orders", ->
beforeEach ->
spyOn(scope, "matchDistributor").andReturn "nothing"