wip: add messages tests

relates to #52
This commit is contained in:
Philipp Rothmann 2023-02-17 13:40:34 +01:00
parent c24904fbe3
commit eba58fc191
4 changed files with 99 additions and 1 deletions

View file

@ -0,0 +1,12 @@
require 'factory_bot'
FactoryBot.define do
factory :message do
sender {create :user}
subject { Faker::Lorem.words(number: 7) }
body { Faker::Lorem.words(number: 42)}
created_at {Time.now}
private { false }
send_method { 'recipients' }
end
end