 
 
   describe 'fetching products without derived attributes', ->
-    beforeEach ->
-      ctrl "AdminBulkProductsCtrl",
-        $scope: scope
-
     it 'returns products without the variant_unit_with_scale field', ->
       scope.products = [{id: 123, variant_unit_with_scale: 'weight_1000'}]
       expect(scope.productsWithoutDerivedAttributes()).toEqual([{id: 123}])



  describe "deleting variants", ->
    beforeEach ->
      scope = {}
      ctrl "AdminBulkProductsCtrl",
        $scope: scope


    it "deletes variants with a http delete request to /api/products/product_id/variants/(variant_id)", ->
      spyOn(window, "confirm").andReturn true
      scope.products = [


  describe "submitting products to be updated", ->
    describe 'packing products', ->
      it 'extracts variant_unit_with_scale into variant_unit and variant_unit_scale', ->
        testProduct =
          id: 1
