BOM: only fetch completed orders

This commit is contained in:
Rob H
2014-02-07 15:29:31 +11:00
parent 6243642cc9
commit 17456ebf2e
3 changed files with 22 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ describe "AdminOrderMgmtCtrl", ->
describe "fetching orders", ->
beforeEach ->
httpBackend.expectGET("/api/orders?template=bulk_index").respond "list of orders"
httpBackend.expectGET("/api/orders?template=bulk_index&q[completed_at_not_null]=true").respond "list of orders"
it "makes a standard call to dataFetcher", ->
scope.fetchOrders()