Sets StockLocation.backorderable_default to false in test factories

This makes the default value of variant.on_demand be false
This commit is contained in:
luisramos0
2018-12-26 20:27:54 +00:00
parent 1007addddb
commit 467623f000

View File

@@ -647,6 +647,9 @@ FactoryBot.modify do
factory :stock_location, class: Spree::StockLocation do
# keeps the test stock_location unique
initialize_with { Spree::StockLocation.find_or_create_by_name(name)}
# sets the default value for variant.on_demand
backorderable_default false
end
factory :shipment, class: Spree::Shipment do