From 467623f00001a4aaec06c11b4d1c0403f303167d Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 26 Dec 2018 20:27:54 +0000 Subject: [PATCH] Sets StockLocation.backorderable_default to false in test factories This makes the default value of variant.on_demand be false --- spec/factories.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/factories.rb b/spec/factories.rb index 6c58fc8d81..23a980d6a6 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -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