[#2071] Fix test now that mails are multipart
This commit is contained in:
parent
be82c1c390
commit
3ba0dd1620
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue