collab/factories/user_factory.rb

8 lines
206 B
Ruby
Raw Normal View History

2010-03-05 06:48:00 +00:00
require 'factory_girl'
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