Further patches to the damned RABL system, patching everything up to use our new Service structure

This commit is contained in:
Will Marshall
2014-06-18 17:54:13 +10:00
parent 224a70c11f
commit c02c7cf7ca
18 changed files with 40 additions and 37 deletions

View File

@@ -9,7 +9,7 @@ describe 'ProductsCtrl', ->
Product =
all: ->
update: ->
data: "testy mctest"
products: "testy mctest"
OrderCycle =
order_cycle: {}
@@ -18,4 +18,4 @@ describe 'ProductsCtrl', ->
ctrl = $controller 'ProductsCtrl', {$scope: scope, Product: Product, OrderCycle: OrderCycle}
it 'fetches products from Product', ->
expect(scope.data).toEqual 'testy mctest'
expect(scope.products).toEqual 'testy mctest'