Add User factory

This commit is contained in:
Thor77 2018-11-13 20:39:46 +01:00
parent ff63380c9c
commit 3043c9f0d7
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 8 additions and 0 deletions

8
spec/factories/users.rb Normal file
View File

@ -0,0 +1,8 @@
# frozen_string_literal: true
FactoryBot.define do
factory :user do
username { Faker::Internet.username }
email { Faker::Internet.email }
end
end