From 30decf3f34528a8960652fdef828a4e6b6d4fe42 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Thu, 14 Mar 2024 10:40:39 +1100 Subject: [PATCH] Fix API V0 shops controller spec --- spec/controllers/api/v0/shops_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/api/v0/shops_controller_spec.rb b/spec/controllers/api/v0/shops_controller_spec.rb index 2cd251b762..c00be92165 100644 --- a/spec/controllers/api/v0/shops_controller_spec.rb +++ b/spec/controllers/api/v0/shops_controller_spec.rb @@ -12,7 +12,7 @@ RSpec.describe Api::V0::ShopsController, type: :controller do } let!(:producer) { create(:supplier_enterprise, name: 'Shopfront Test Producer') } let!(:category) { create(:taxon, name: 'Fruit') } - let!(:product) { create(:product, supplier: producer, primary_taxon: category ) } + let!(:product) { create(:product, supplier_id: producer.id, primary_taxon: category ) } let!(:relationship) { create(:enterprise_relationship, parent: hub, child: producer) } let!(:closed_hub1) { create(:distributor_enterprise) } let!(:closed_hub2) { create(:distributor_enterprise) }