mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +00:00
85d592f648
Added model annotations
14 lines
No EOL
225 B
Ruby
14 lines
No EOL
225 B
Ruby
FactoryGirl.define do
|
|
sequence :title do |n|
|
|
"Article #{n}"
|
|
end
|
|
|
|
sequence :text do |n|
|
|
(0..100).map{ (0...8).map { (65 + rand(26)).chr }.join }.join(" ")
|
|
end
|
|
|
|
factory :article do
|
|
title
|
|
text
|
|
end
|
|
end |