refactor instructeur_avis_url

This commit is contained in:
Christophe Robillard 2020-05-20 16:32:06 +02:00
parent b0cfb2c02a
commit 4839506374
9 changed files with 14 additions and 14 deletions

View file

@ -290,7 +290,7 @@ describe Instructeurs::AvisController, type: :controller do
get :sign_up, params: { id: avis.id, procedure_id: procedure.id, email: invited_email }
end
it { is_expected.to redirect_to instructeur_avis_url(avis) }
it { is_expected.to redirect_to instructeur_avis_url(avis.procedure, avis) }
end
context 'when the instructeur is not authenticated' do
@ -312,7 +312,7 @@ describe Instructeurs::AvisController, type: :controller do
end
# redirected to dossier but then the instructeur gonna be banished !
it { is_expected.to redirect_to instructeur_avis_url(avis) }
it { is_expected.to redirect_to instructeur_avis_url(avis.procedure, avis) }
end
end