For OC, fetch all enterprises we have access to, including those via E2E relationships

This commit is contained in:
Rohan Mitchell
2014-08-28 15:06:55 +10:00
parent 0b61872d96
commit 7f74854a2f
8 changed files with 27 additions and 10 deletions

View File

@@ -327,7 +327,7 @@ describe 'OrderCycle services', ->
inject ($injector, _$httpBackend_)->
Enterprise = $injector.get('Enterprise')
$httpBackend = _$httpBackend_
$httpBackend.whenGET('/admin/enterprises.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]}