Upgrade factory_bot, faker
This commit is contained in:
parent
e6a1bfcb45
commit
f2cb17bcd6
10 changed files with 33 additions and 33 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue