Use implicit style for associations with factory overrides
This matches our usage of implicit style for associations generally, e.g. `user`.
This commit is contained in:
parent
8aba3c4ec4
commit
cb4f99fef2
15 changed files with 24 additions and 19 deletions
|
@ -4,8 +4,8 @@ FactoryBot.define do
|
|||
sequence(:body) { |n| "Body text for message #{n}" }
|
||||
sent_on { Time.now.utc }
|
||||
|
||||
association :sender, :factory => :user
|
||||
association :recipient, :factory => :user
|
||||
sender :factory => :user
|
||||
recipient :factory => :user
|
||||
|
||||
trait :unread do
|
||||
message_read { false }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue