collab/factories/factories.rb

21 lines
501 B
Ruby
Raw Normal View History

2010-03-15 15:47:32 +00:00
require 'factory_girl'
require 'faker'
Factory.define :user do |f|
f.sequence(:email) { |n| "email_#{n}@localhost.com" }
f.sequence(:password) { |n| "password#{n}" }
f.sequence(:short_name) { |n| "short_#{n}" }
end
Factory.define :project do |f|
f.sequence(:name) {|n| "project #{n}"}
end
Factory.define :task do |f|
f.sequence(:name) {|n| "task #{n}"}
f.description Faker::Lorem.words(50)
end
Factory.define :wall do |f|
f.text "@short_2 This is a wall post of fun and goodness"
end