Merge pull request #4854 from betagouv/fix-test-procedure-presentation

Rend plus robuste un test pour `procedure_presentation`
This commit is contained in:
krichtof 2020-03-04 08:34:06 +01:00 committed by GitHub
commit a8a0055e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,7 +215,10 @@ describe ProcedurePresentation do
let!(:follow1) { create(:follow, dossier: dossier, instructeur: create(:instructeur, email: 'user1@host')) }
let!(:follow2) { create(:follow, dossier: dossier, instructeur: create(:instructeur, email: 'user2@host')) }
it { is_expected.to eq('user1@host, user2@host') }
it "return emails of followers instructeurs" do
emails_to_display = procedure_presentation.displayed_field_values(dossier).first.split(', ').sort
expect(emails_to_display).to eq ["user1@host", "user2@host"]
end
end
context 'for type_de_champ table' do