Merge branch 'bulk-product-edit' into combined/single-order-patches-and-bulk-product-edit

Conflicts:
	spec/features/admin/bulk_product_update_spec.rb
This commit is contained in:
Rohan Mitchell
2015-05-29 15:08:30 +10:00
18 changed files with 76 additions and 19 deletions

View File

@@ -61,14 +61,14 @@ describe "BulkProducts service", ->
clonedProduct =
id: 17
spyOn(BulkProducts, "addProducts")
spyOn(BulkProducts, "insertProductAfter")
BulkProducts.products = [originalProduct]
$httpBackend.expectGET("/admin/products/oranges/clone.json").respond 200,
product: clonedProduct
$httpBackend.expectGET("/api/products/17?template=bulk_show").respond 200, clonedProduct
BulkProducts.cloneProduct BulkProducts.products[0]
$httpBackend.flush()
expect(BulkProducts.addProducts).toHaveBeenCalledWith [clonedProduct]
expect(BulkProducts.insertProductAfter).toHaveBeenCalledWith originalProduct, clonedProduct
describe "preparing products", ->