From 9b879da61605ee505c18f5f052d2ac97812f179f Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Wed, 22 May 2024 12:05:46 +1000 Subject: [PATCH] Fix Checkout payment system spec --- spec/system/consumer/checkout/payment_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/consumer/checkout/payment_spec.rb b/spec/system/consumer/checkout/payment_spec.rb index e9a1c83609..b0bd281ca1 100644 --- a/spec/system/consumer/checkout/payment_spec.rb +++ b/spec/system/consumer/checkout/payment_spec.rb @@ -15,7 +15,7 @@ RSpec.describe "As a consumer, I want to checkout my order" do let(:supplier) { create(:supplier_enterprise) } let(:distributor) { create(:distributor_enterprise, charges_sales_tax: true) } let(:product) { - create(:taxed_product, supplier:, price: 10, zone:, tax_rate_amount: 0.1) + create(:taxed_product, supplier_id: supplier.id, price: 10, zone:, tax_rate_amount: 0.1) } let(:variant) { product.variants.first } let!(:order_cycle) {