Upgrade factory_bot, faker

This commit is contained in:
wvengen 2019-10-28 09:40:43 +01:00 committed by wvengen
parent e6a1bfcb45
commit f2cb17bcd6
10 changed files with 33 additions and 33 deletions

View file

@ -8,12 +8,12 @@ FactoryBot.define do
article_ids { supplier.articles.map(&:id) unless supplier.nil? }
transient do
article_count true
article_count { true }
end
# for an order from stock; need to add articles
factory :stock_order do
supplier_id 0
supplier_id { 0 }
# article_ids needs to be supplied
end