Fix a test now that we use transaction instead of truncation

This commit is contained in:
gregoirenovel 2017-04-04 12:09:51 +02:00
parent 0e13e4bdfd
commit fa9bf2d398

View file

@ -8,8 +8,8 @@ describe MailTemplateConcern do
it 'works' do it 'works' do
initiated_mail.object = '[TPS] --numero_dossier-- --libelle_procedure-- --lien_dossier--' initiated_mail.object = '[TPS] --numero_dossier-- --libelle_procedure-- --lien_dossier--'
expected = expected =
"[TPS] 1 Demande de subvention " + "[TPS] #{dossier.id} Demande de subvention " +
"<a target=\"_blank\" href=\"http://localhost:3000/users/dossiers/1/recapitulatif\">http://localhost:3000/users/dossiers/1/recapitulatif</a>" "<a target=\"_blank\" href=\"http://localhost:3000/users/dossiers/#{dossier.id}/recapitulatif\">http://localhost:3000/users/dossiers/#{dossier.id}/recapitulatif</a>"
expect(initiated_mail.object_for_dossier(dossier)).to eq(expected) expect(initiated_mail.object_for_dossier(dossier)).to eq(expected)
end end