Fix enterprise shopfront serializer spec

This commit is contained in:
Gaetan Craig-Riou
2024-05-22 15:01:17 +10:00
parent 3eae329cc4
commit 8244fa7685

View File

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