Fix a test now that we use transaction instead of truncation
This commit is contained in:
parent
0e13e4bdfd
commit
fa9bf2d398
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue