Fix checkout auth system spec

This commit is contained in:
Gaetan Craig-Riou
2024-05-22 11:58:12 +10:00
parent 4c274e0a90
commit 8104d8e37b

View File

@@ -17,7 +17,7 @@ RSpec.describe "As a consumer I want to check out my cart" do
coordinator: create(:distributor_enterprise),
variants: [product.variants.first])
}
let(:product) { create(:simple_product, supplier:) }
let(:product) { create(:simple_product, supplier_id: supplier.id) }
let(:order) { create(:order, order_cycle:, distributor:) }
let(:address) { create(:address, firstname: "Foo", lastname: "Bar") }
let(:user) { create(:user, bill_address: address, ship_address: address) }