From 32204076bdbb232d723ac5db198fdc72466fd547 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Mon, 30 Sep 2013 09:18:49 +1000 Subject: [PATCH] Update js specs for pagination fix --- spec/javascripts/unit/bulk_product_update_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/javascripts/unit/bulk_product_update_spec.js b/spec/javascripts/unit/bulk_product_update_spec.js index 549d602541..cb110d56e3 100644 --- a/spec/javascripts/unit/bulk_product_update_spec.js +++ b/spec/javascripts/unit/bulk_product_update_spec.js @@ -203,7 +203,7 @@ describe("AdminBulkProductsCtrl", function(){ it("gets a list of suppliers and then resets products with a list of data", function(){ httpBackend.expectGET('/api/users/authorise_api?token=api_key').respond( { "success": "Use of API Authorised" } ); httpBackend.expectGET('/api/enterprises/managed?template=bulk_index&q[is_primary_producer_eq]=true').respond("list of suppliers"); - httpBackend.expectGET('/api/products/managed?template=bulk_index').respond("list of products"); + httpBackend.expectGET('/api/products/managed?template=bulk_index;page=1;per_page=500').respond("list of products"); spyOn(scope, "resetProducts"); scope.initialise('api_key'); httpBackend.flush();