From 46690faffbdb75d2839d770b2826d49c3bb65b5e Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 17 Apr 2015 15:14:19 +1000 Subject: [PATCH] Fixing Darkswarm Angular Product Controller spec --- .../darkswarm/controllers/products_controller_spec.js.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/javascripts/unit/darkswarm/controllers/products_controller_spec.js.coffee b/spec/javascripts/unit/darkswarm/controllers/products_controller_spec.js.coffee index 67aced98c6..9e4237d1e7 100644 --- a/spec/javascripts/unit/darkswarm/controllers/products_controller_spec.js.coffee +++ b/spec/javascripts/unit/darkswarm/controllers/products_controller_spec.js.coffee @@ -5,6 +5,7 @@ describe 'ProductsCtrl', -> Products = null Cart = {} Taxons = null + Properties = null beforeEach -> module('Darkswarm') @@ -17,10 +18,11 @@ describe 'ProductsCtrl', -> order_cycle: {} Taxons: taxons: [] + Properties: {} inject ($rootScope, $controller) -> scope = $rootScope - ctrl = $controller 'ProductsCtrl', {$scope: scope, Products: Products, OrderCycle: OrderCycle, Cart: Cart, Taxons: Taxons} + ctrl = $controller 'ProductsCtrl', {$scope: scope, Products: Products, OrderCycle: OrderCycle, Cart: Cart, Taxons: Taxons, Properties: Properties} it 'fetches products from Products', -> expect(scope.Products.products).toEqual ['testy mctest']