From aae87fce0ab97a766dd477d7c5196be38e3e1648 Mon Sep 17 00:00:00 2001 From: Benoit Queyron <72251526+Benoit-MINT@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:54:27 +0200 Subject: [PATCH] ajustement test dossier_action --- .../views/users/dossiers/_dossier_actions.html.haml_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/views/users/dossiers/_dossier_actions.html.haml_spec.rb b/spec/views/users/dossiers/_dossier_actions.html.haml_spec.rb index a5ab7f0dc..4a85ae8f2 100644 --- a/spec/views/users/dossiers/_dossier_actions.html.haml_spec.rb +++ b/spec/views/users/dossiers/_dossier_actions.html.haml_spec.rb @@ -5,7 +5,7 @@ describe 'users/dossiers/dossier_actions', type: :view do subject { render 'users/dossiers/dossier_actions', dossier: dossier, current_user: user } - it { is_expected.to have_link('Commencer un autre dossier', href: commencer_url(path: procedure.path)) } + it { is_expected.to have_link('Commencer un nouveau dossier', href: commencer_url(path: procedure.path)) } it { is_expected.to have_link('Supprimer le dossier', href: dossier_path(dossier)) } it { is_expected.to have_link('Transférer le dossier', href: transferer_dossier_path(dossier)) } @@ -16,11 +16,11 @@ describe 'users/dossiers/dossier_actions', type: :view do context 'when the procedure is closed' do let(:procedure) { create(:procedure, :closed) } - it { is_expected.not_to have_link('Commencer un autre dossier') } + it { is_expected.not_to have_link('Commencer un nouveau dossier') } end context 'when the procedure is closed and replaced' do let(:procedure) { create(:procedure, :closed, replaced_by_procedure: create(:procedure)) } - it { is_expected.to have_link('Commencer un autre dossier') } + it { is_expected.to have_link('Commencer un nouveau dossier') } end end