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']