Setup Faker and Factorybot
This commit is contained in:
7
spec/factories/users.rb
Normal file
7
spec/factories/users.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
FactoryBot.define do
|
||||
factory :user do
|
||||
username { Faker::Internet.username }
|
||||
email_address { Faker::Internet.email }
|
||||
password { Faker::Internet.password(min_length: 12, max_length: 18) }
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user