fix test for procedure presentation

This commit is contained in:
Christophe Robillard 2020-03-03 18:07:50 +01:00
parent 323b18ad69
commit e8bef76772

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