From 2d707e8acbe39686409b4cb8302dbe8ac666770b Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Sun, 26 May 2024 13:45:29 +1000 Subject: [PATCH] Fix consumer producer system spec --- spec/system/consumer/producers_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/consumer/producers_spec.rb b/spec/system/consumer/producers_spec.rb index 48832fbd62..5796810156 100644 --- a/spec/system/consumer/producers_spec.rb +++ b/spec/system/consumer/producers_spec.rb @@ -19,10 +19,10 @@ RSpec.describe ' let(:taxon_veg) { create(:taxon, name: 'Vegetables') } let!(:product1) { - create(:simple_product, supplier: producer1, primary_taxon: taxon_fruit) + create(:simple_product, supplier_id: producer1.id, primary_taxon: taxon_fruit) } let!(:product2) { - create(:simple_product, supplier: producer2, primary_taxon: taxon_veg) + create(:simple_product, supplier_id: producer2.id, primary_taxon: taxon_veg) } let(:shop) { create(:distributor_enterprise) }