add username to user factory
This commit is contained in:
parent
962915829f
commit
5c67b91302
1 changed files with 1 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
FactoryBot.define do
|
||||
factory :user do
|
||||
sequence(:email_address) { |n| "user#{n}@example.com" }
|
||||
sequence(:username) { |n| "user#{n}" }
|
||||
password_digest { BCrypt::Password.create('password123') }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue