Merge pull request #3347 from luisramos0/2-0-default-on-demand

[Spree Upgrade] Sets StockLocation.backorderable_default to false in test factories
This commit is contained in:
Pau Pérez Fabregat
2019-01-21 17:34:46 +01:00
committed by GitHub
5 changed files with 29 additions and 35 deletions

View File

@@ -6,7 +6,7 @@ class DefaultStockLocation
def self.create!
country = Spree::Country.find_by_iso(ENV['DEFAULT_COUNTRY_CODE'])
state = country.states.first
Spree::StockLocation.create!(name: NAME, country_id: country.id, state_id: state.id)
Spree::StockLocation.create!(name: NAME, country_id: country.id, state_id: state.id, backorderable_default: false)
end
def self.destroy_all