Add login & user tests

This commit is contained in:
sto
2025-03-27 10:26:03 +01:00
parent 7023600cd1
commit 26b8064553
7 changed files with 123 additions and 8 deletions

View File

@@ -1,7 +1,11 @@
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) }
username { Faker::Internet.unique.username }
email_address { Faker::Internet.unique.email }
password { Faker::Internet.unique.password(min_length: 12, max_length: 18) }
end
trait :admin do
admin { true }
end
end