0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-03-18 08:32:53 +00:00
ensl.org/spec/factories/post.rb
2020-03-22 14:22:10 +02:00

11 lines
237 B
Ruby

FactoryBot.define do
factory :post do
sequence(:text) { |n| "Post Body #{n}" }
topic
user
trait :with_content do
text { (0..100).map { (0...8).map { (65 + rand(26)).chr }.join }.join(" ") }
end
end
end