14 lines
300 B
Ruby
Raw Normal View History

2014-03-09 14:43:33 -06:00
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
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