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

6 lines
190 B
Ruby
Executable file

FactoryBot.define do
factory :article do
sequence(:title) { |n| "Article #{n}" }
sequence(:text) { (0..100).map { (0...8).map { (65 + rand(26)).chr }.join }.join(" ") }
end
end