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) }