2014-03-09 14:43:33 -06:00
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
|
|
|
|
FactoryGirl.define do
|
2014-04-29 21:02:02 -06:00
|
|
|
sequence(:email) { |n| "person-#{n}@example.com" }
|
|
|
|
sequence(:username) { |n| "person-#{n}" }
|
|
|
|
|
|
|
|
factory :user, class: User do
|
|
|
|
username
|
|
|
|
email
|
|
|
|
password "secret"
|
|
|
|
password_confirmation "secret"
|
|
|
|
end
|
2014-03-09 14:43:33 -06:00
|
|
|
end
|