[#2071] Fix test now that mails are multipart

This commit is contained in:
Frederic Merizen 2018-06-10 11:53:51 +02:00
parent be82c1c390
commit 3ba0dd1620

View file

@ -159,7 +159,7 @@ feature 'The gestionnaire part' do
def test_mail(to, content)
mail = ActionMailer::Base.deliveries.first
expect(mail.to).to match([to])
expect(mail.body.raw_source).to include(content)
expect(mail.body.parts.map(&:to_s)).to all(include(content))
end
def test_statut_bar(a_suivre: 0, suivi: 0, traite: 0, tous_les_dossiers: 0, archive: 0)