Fix problem with shipment's stock location creation

This commit is contained in:
Luis Ramos
2020-08-23 14:29:11 +01:00
parent f56fa0b7a5
commit 292199441a

View File

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