0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-01-16 14:50:39 +00:00
ensl.org/spec/factories/message.rb

10 lines
282 B
Ruby
Raw Normal View History

FactoryGirl.define do
2015-11-07 06:21:31 +00:00
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