diff --git a/spec/javascripts/unit/admin/bulk_product_update_spec.js.coffee b/spec/javascripts/unit/admin/bulk_product_update_spec.js.coffee index 9369342591..a53c0732b9 100644 --- a/spec/javascripts/unit/admin/bulk_product_update_spec.js.coffee +++ b/spec/javascripts/unit/admin/bulk_product_update_spec.js.coffee @@ -822,6 +822,7 @@ describe "AdminProductEditCtrl", -> $scope.dirtyProducts = {} $httpBackend.expectDELETE("/api/v0/products/13").respond 200, "data" $scope.deleteProduct $scope.products[1] + expect(window.confirm).toHaveBeenCalledWith "Are you sure?" $httpBackend.flush() it "removes the specified product from both $scope.products and $scope.dirtyProducts (if it exists there)", ->