dossier: add link to messagerie when rejected

This commit is contained in:
Pierre de La Morinerie 2018-09-17 12:48:04 +00:00
parent 2de480d6e9
commit fd7f07a244
2 changed files with 3 additions and 0 deletions

View file

@ -50,6 +50,8 @@
%h3 Motif du refus
%blockquote= dossier.motivation
= link_to 'Envoyer un message à ladministration', messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'button'
- elsif dossier.sans_suite?
.sans-suite
%p

View file

@ -75,6 +75,7 @@ describe 'new_user/dossiers/show/_status_overview.html.haml', type: :view do
it { is_expected.not_to have_selector('.status-timeline') }
it { is_expected.to have_selector('.status-explanation .refuse') }
it { is_expected.to have_text(dossier.motivation) }
it { is_expected.to have_link(nil, href: messagerie_dossier_url(dossier, anchor: 'new_commentaire')) }
end
context 'when classé sans suite' do