add :with_user trait to fci as user_id is mandatory

This commit is contained in:
simon lehericey 2021-04-16 14:32:36 +02:00
parent ed404f129b
commit 1cf59f722e

View file

@ -6,5 +6,9 @@ FactoryBot.define do
birthdate { '1976-02-24' }
france_connect_particulier_id { '1234567' }
email_france_connect { 'plip@octo.com' }
trait :with_user do
user { build(:user, email: email_france_connect) }
end
end
end