Merge pull request #10068 from mfo/US/user-has-many-fcis
tech(User.FranceConnect): un usager peut avoir plusieurs profils FranceConnect, pas uniquement un
This commit is contained in:
commit
086cc1537b
14 changed files with 52 additions and 27 deletions
|
@ -172,7 +172,7 @@ describe 'instructeurs/dossiers/show', type: :view do
|
|||
|
||||
context 'when the user is logged in with france connect' do
|
||||
let(:france_connect_information) { build(:france_connect_information) }
|
||||
let(:user) { build(:user, france_connect_information: france_connect_information) }
|
||||
let(:user) { build(:user, france_connect_informations: [france_connect_information]) }
|
||||
let(:procedure1) { create(:procedure, :with_type_de_champ, for_individual: true) }
|
||||
let(:dossier) { create(:dossier, procedure: procedure1, user: user) }
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ describe 'users/dossiers/demande', type: :view do
|
|||
|
||||
context 'when the user is logged in with france connect' do
|
||||
let(:france_connect_information) { build(:france_connect_information) }
|
||||
let(:user) { build(:user, france_connect_information: france_connect_information) }
|
||||
let(:user) { build(:user, france_connect_informations: [france_connect_information]) }
|
||||
let(:procedure1) { create(:procedure, :with_type_de_champ, for_individual: true) }
|
||||
let(:dossier) { create(:dossier, procedure: procedure1, user: user) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue