collab/factories/task_factory.rb
2010-03-04 17:42:09 -05:00

7 lines
152 B
Ruby

require 'factory_girl'
require 'faker'
Factory.define :task do |f|
f.sequence(:name) {|n| "task #{n}"}
f.description Faker::Lorem.paragraphs(1)
end