views: make dossier optional on procedure_footer

This allow displaying the procedure footer even when
there is no dossier yet
This commit is contained in:
Pierre de La Morinerie 2018-12-17 15:03:11 +00:00
parent d36696442b
commit 5d6005dbe9
10 changed files with 16 additions and 16 deletions

View file

@ -6,7 +6,7 @@ describe 'new_user/procedure_footer.html.haml', type: :view do
return dossier
}
subject { render 'new_user/procedure_footer.html.haml', dossier: dossier }
subject { render 'new_user/procedure_footer.html.haml', procedure: dossier.procedure, dossier: dossier }
it "affiche les informations de contact" do
expect(subject).to have_text(service.nom)