summaryrefslogtreecommitdiff
path: root/test/factories/users.rb
blob: 3d53141c812e90b231b10ca1e897abc17f399b65 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Read about factories at http://github.com/thoughtbot/factory_girl

Factory.define :user do |f|
  f.sequence(:user_name) { |n| "User #{n}" }
  f.sequence(:first_name) { |n| "John #{n}" }
  f.sequence(:last_name) { |n| "Smith #{n}" }
  f.sequence(:email) { |n| "john.smith#{n}@company.com" }
  f.sequence(:password) { |n| "Testpassword#{n}" }
  f.sequence(:password_confirmation) { |n| "Testpassword#{n}" }
  f.association :language
end