You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
300 B
13 lines
300 B
# 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
|
|
end
|
|
|