collab/factories/task_factory.rb

7 lines
152 B
Ruby
Raw Normal View History

2010-03-04 22:42:09 +00:00
require 'factory_girl'
require 'faker'
Factory.define :task do |f|
f.sequence(:name) {|n| "task #{n}"}
f.description Faker::Lorem.paragraphs(1)
end