mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 04:21:36 +00:00
6 lines
191 B
Ruby
Executable file
6 lines
191 B
Ruby
Executable file
FactoryGirl.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
|