Cancelling a standing order just changes the state, does not remove it from the page

This commit is contained in:
Rob Harrington
2016-12-08 12:02:58 +11:00
parent 522e646b36
commit 9c2e67e953
6 changed files with 8 additions and 21 deletions

View File

@@ -31,7 +31,7 @@ describe "StandingOrdersCtrl", ->
standingOrders = [standingOrder]
beforeEach ->
http.expectGET('/admin/standing_orders.json?q%5Bshop_id_eq%5D=3').respond 200, standingOrders
http.expectGET('/admin/standing_orders.json?q%5Bcanceled_at_null%5D=true&q%5Bshop_id_eq%5D=3').respond 200, standingOrders
scope.$apply -> scope.shop_id = 3
http.flush()