dossier: add link to messagerie when rejected
This commit is contained in:
parent
2de480d6e9
commit
fd7f07a244
2 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,8 @@
|
||||||
%h3 Motif du refus
|
%h3 Motif du refus
|
||||||
%blockquote= dossier.motivation
|
%blockquote= dossier.motivation
|
||||||
|
|
||||||
|
= link_to 'Envoyer un message à l’administration', messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'button'
|
||||||
|
|
||||||
- elsif dossier.sans_suite?
|
- elsif dossier.sans_suite?
|
||||||
.sans-suite
|
.sans-suite
|
||||||
%p
|
%p
|
||||||
|
|
|
@ -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.not_to have_selector('.status-timeline') }
|
||||||
it { is_expected.to have_selector('.status-explanation .refuse') }
|
it { is_expected.to have_selector('.status-explanation .refuse') }
|
||||||
it { is_expected.to have_text(dossier.motivation) }
|
it { is_expected.to have_text(dossier.motivation) }
|
||||||
|
it { is_expected.to have_link(nil, href: messagerie_dossier_url(dossier, anchor: 'new_commentaire')) }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when classé sans suite' do
|
context 'when classé sans suite' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue