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

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