mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Fix problem with shipment's stock location creation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user