From 8244fa7685e3cd2bbbbaabb328695328c04979a7 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Wed, 22 May 2024 15:01:17 +1000 Subject: [PATCH] Fix enterprise shopfront serializer spec --- spec/serializers/api/enterprise_shopfront_serializer_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/serializers/api/enterprise_shopfront_serializer_spec.rb b/spec/serializers/api/enterprise_shopfront_serializer_spec.rb index 766995c793..3f0dee41da 100644 --- a/spec/serializers/api/enterprise_shopfront_serializer_spec.rb +++ b/spec/serializers/api/enterprise_shopfront_serializer_spec.rb @@ -12,10 +12,10 @@ RSpec.describe Api::EnterpriseShopfrontSerializer do let!(:taxon1) { create(:taxon, name: 'Meat') } let!(:taxon2) { create(:taxon, name: 'Veg') } let!(:product) { - create(:product, supplier: producer, primary_taxon: taxon1 ) + create(:product, supplier_id: producer.id, primary_taxon: taxon1 ) } let!(:product2) { - create(:product, supplier: producer_hidden, primary_taxon: taxon2 ) + create(:product, supplier_id: producer_hidden.id, primary_taxon: taxon2 ) } let(:close_time) { 2.days.from_now }