diff --git a/spec/system/admin/orders/having_producer_products/hub_actions_spec.rb b/spec/system/admin/orders/having_producer_products/hub_actions_spec.rb index b51b09d284..d5ca241d22 100644 --- a/spec/system/admin/orders/having_producer_products/hub_actions_spec.rb +++ b/spec/system/admin/orders/having_producer_products/hub_actions_spec.rb @@ -11,8 +11,8 @@ RSpec.describe ' include WebHelper let!(:hub1) { create(:distributor_enterprise, name: 'My hub1') } - let!(:hub1_v1) { create(:variant, supplier_id: hub1.id) } - let!(:hub1_v2) { create(:variant, supplier_id: hub1.id) } + let!(:hub1_v1) { create(:variant, supplier: hub1) } + let!(:hub1_v2) { create(:variant, supplier: hub1) } let(:order_cycle) do create( :simple_order_cycle,