fix tests that now requir an admin user to have a strong password

This commit is contained in:
clemkeirua 2020-09-18 09:57:26 +02:00
parent d8b4cc67be
commit 2b23eefee2
4 changed files with 7 additions and 3 deletions

View file

@ -3,7 +3,7 @@ FactoryBot.define do
factory :administrateur do
transient do
email { generate(:administrateur_email) }
password { 'mon chien aime les bananes' }
password { 'Mon [hien 4im3 {es banane$' }
end
initialize_with do

View file

@ -8,5 +8,9 @@ FactoryBot.define do
trait :unconfirmed do
confirmed_at { nil }
end
trait :with_strong_password do
password { '{my-%s3cure[]-p4$$w0rd' }
end
end
end