Add 'mes procédures' link in navbar
This commit is contained in:
parent
64d27e0088
commit
0314bc54dd
2 changed files with 7 additions and 1 deletions
|
@ -8,7 +8,10 @@
|
|||
%span{ style: 'margin-left: 25px;' }
|
||||
%b
|
||||
Mes Dossiers
|
||||
|
||||
-elsif administrateur_signed_in?
|
||||
%span{ style: 'margin-left: 25px;' }
|
||||
%b
|
||||
Mes Procédures
|
||||
#sign_out
|
||||
-if gestionnaire_signed_in?
|
||||
= render partial: 'gestionnaires/login_banner'
|
||||
|
|
|
@ -17,6 +17,7 @@ describe 'layouts/_navbar.html.haml', type: :view do
|
|||
it { is_expected.to match(/href="\/gestionnaires\/sign_in">Accompagnateur/) }
|
||||
it { is_expected.to match(/href="\/administrateurs\/sign_in">Administrateur/) }
|
||||
it { is_expected.not_to match(/Mes Dossiers/) }
|
||||
it { is_expected.not_to match(/Mes Procédures/) }
|
||||
it { is_expected.not_to match(/Se déconnecter/) }
|
||||
end
|
||||
|
||||
|
@ -33,6 +34,7 @@ describe 'layouts/_navbar.html.haml', type: :view do
|
|||
it { is_expected.not_to match(/href="\/gestionnaires\/sign_in">Accompagnateur/) }
|
||||
it { is_expected.not_to match(/href="\/administrateurs\/sign_in">Administrateur/) }
|
||||
it { is_expected.not_to match(/Mes Dossiers/) }
|
||||
it { is_expected.to match(/Mes Procédures/) }
|
||||
it { is_expected.to match(/Se déconnecter/) }
|
||||
end
|
||||
|
||||
|
@ -48,6 +50,7 @@ describe 'layouts/_navbar.html.haml', type: :view do
|
|||
it { is_expected.not_to match(/href="\/users\/sign_in">Utilisateur/) }
|
||||
it { is_expected.not_to match(/href="\/gestionnaires\/sign_in">Accompagnateur/) }
|
||||
it { is_expected.not_to match(/href="\/administrateurs\/sign_in">Administrateur/) }
|
||||
it { is_expected.not_to match(/Mes Procédures/) }
|
||||
it { is_expected.to match(/Mes Dossiers/) }
|
||||
it { is_expected.to match(/Se déconnecter/) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue