Remove deprecated carto from dossiers controller

This commit is contained in:
Paul Chavard 2018-11-27 15:56:14 +01:00
parent d988638c58
commit 9ff65efea8
2 changed files with 1 additions and 13 deletions

View file

@ -61,11 +61,7 @@ module NewUser
@dossier.update!(autorisation_donnees: true)
flash.notice = "Identité enregistrée"
if @dossier.use_legacy_carto?
redirect_to users_dossier_carte_path(@dossier.id)
else
redirect_to brouillon_dossier_path(@dossier)
end
else
flash.now.alert = @dossier.individual.errors.full_messages
render :identite

View file

@ -175,14 +175,6 @@ describe NewUser::DossiersController, type: :controller do
it do
expect(response).to redirect_to(brouillon_dossier_path(dossier))
end
context 'on a procedure with carto' do
let(:procedure) { create(:procedure, :for_individual, :with_api_carto) }
it do
expect(response).to redirect_to(users_dossier_carte_path(dossier))
end
end
end
context 'when the identite cannot be updated by the user' do