From 1cf59f722e7c3284c4779bcdc13d18680ae65f02 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 16 Apr 2021 14:32:36 +0200 Subject: [PATCH] add :with_user trait to fci as user_id is mandatory --- spec/factories/france_connect_information.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/factories/france_connect_information.rb b/spec/factories/france_connect_information.rb index 60aaf7d69..68555cb65 100644 --- a/spec/factories/france_connect_information.rb +++ b/spec/factories/france_connect_information.rb @@ -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