X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e5cbe87ed37f9cba8224fa4049047d7f981f66a..123c7d10a5e798e2379dfb04df4a22b1deface3c:/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