X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/45487e1ff8e7d334792440a2b5b3b1067269bfaf..75a4d406b9e8471c0fe0ebf2a47d47f0ae36289a:/test/factories/messages.rb diff --git a/test/factories/messages.rb b/test/factories/messages.rb index cd148c789..906c4dea9 100644 --- a/test/factories/messages.rb +++ b/test/factories/messages.rb @@ -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 } @@ -14,5 +14,9 @@ FactoryBot.define do trait :read do message_read { true } end + + trait :muted do + muted { true } + end end end