From 292199441a0fba08005bb5d6221e4b21f6b17679 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sun, 23 Aug 2020 14:29:11 +0100 Subject: [PATCH] Fix problem with shipment's stock location creation --- spec/factories/shipment_factory.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/factories/shipment_factory.rb b/spec/factories/shipment_factory.rb index 521742baf3..64f84dfe3e 100644 --- a/spec/factories/shipment_factory.rb +++ b/spec/factories/shipment_factory.rb @@ -9,7 +9,7 @@ FactoryBot.define do state 'pending' order address - stock_location + stock_location { DefaultStockLocation.find_or_create } after(:create) do |shipment, evalulator| shipment.add_shipping_method(create(:shipping_method), true) @@ -27,7 +27,7 @@ FactoryBot.define do state 'pending' order address - stock_location + stock_location { DefaultStockLocation.find_or_create } trait :shipping_method do transient do