ensl.org/spec/factories/message.rb
2020-03-15 15:33:58 +02:00

9 lines
281 B
Ruby
Executable file

FactoryBot.define do
factory :message do
association :sender, factory: :user
association :recipient, factory: :user
sequence(:text) { |n| "text-#{n}" }
sequence(:title) { |n| "title-#{n}" }
sequence(:text_parsed) { |n| "text-#{n}" }
end
end