Adopt Rails 5 belongs_to_required_by_default
This commit is contained in:
parent
2557645f4f
commit
44a198c7bc
23 changed files with 53 additions and 38 deletions
|
|
@ -6,6 +6,8 @@ FactoryBot.define do
|
|||
starts { Time.now }
|
||||
supplier { create :supplier, article_count: (article_count.nil? ? true : article_count) }
|
||||
article_ids { supplier.articles.map(&:id) unless supplier.nil? }
|
||||
created_by { create :user }
|
||||
updated_by { create :user }
|
||||
|
||||
transient do
|
||||
article_count { true }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue