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