ensl.org/spec/factories/article.rb
Luke Barratt 85d592f648 Initial article text code
Added model annotations
2014-03-26 11:09:39 +00:00

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