Enterprises etched by for_order_cycle action now use permissions scoped using an order cycle or coordinator

This commit is contained in:
Rob Harrington
2015-03-20 16:33:08 +11:00
parent a1aa9512a8
commit 45f6042d3d
6 changed files with 77 additions and 24 deletions

View File

@@ -330,7 +330,7 @@ describe 'OrderCycle services', ->
inject ($injector, _$httpBackend_)->
Enterprise = $injector.get('Enterprise')
$httpBackend = _$httpBackend_
$httpBackend.whenGET('/admin/enterprises/for_order_cycle.json').respond [
$httpBackend.whenGET('/admin/enterprises/for_order_cycle.json?').respond [
{id: 1, name: 'One', supplied_products: [1, 2]}
{id: 2, name: 'Two', supplied_products: [3, 4]}
{id: 3, name: 'Three', supplied_products: [5, 6]}