From da900321ca454805a3096c8dc5cffa9a49356e54 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Tue, 28 Nov 2023 16:03:58 +0100 Subject: [PATCH] fix product controller tests --- spec/controllers/api/v0/products_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/controllers/api/v0/products_controller_spec.rb b/spec/controllers/api/v0/products_controller_spec.rb index 574a4df07d4..c31e3238967 100644 --- a/spec/controllers/api/v0/products_controller_spec.rb +++ b/spec/controllers/api/v0/products_controller_spec.rb @@ -102,7 +102,8 @@ expect(response.status).to eq(422) expect(json_response["error"]).to eq("Invalid resource. Please fix errors and try again.") errors = json_response["errors"] - expect(errors.keys).to match_array(["name", "primary_taxon", "supplier", "variant_unit"]) + expect(errors.keys).to match_array(["name", "primary_taxon", "supplier", "variant_unit", + "price"]) end it "can update a product" do