From 9ff65efea8606dba1b50513ec1fc333e9ad5a9b2 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 27 Nov 2018 15:56:14 +0100 Subject: [PATCH] Remove deprecated carto from dossiers controller --- app/controllers/new_user/dossiers_controller.rb | 6 +----- spec/controllers/new_user/dossiers_controller_spec.rb | 8 -------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/app/controllers/new_user/dossiers_controller.rb b/app/controllers/new_user/dossiers_controller.rb index 1788c4003..57e8e6117 100644 --- a/app/controllers/new_user/dossiers_controller.rb +++ b/app/controllers/new_user/dossiers_controller.rb @@ -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 + redirect_to brouillon_dossier_path(@dossier) else flash.now.alert = @dossier.individual.errors.full_messages render :identite diff --git a/spec/controllers/new_user/dossiers_controller_spec.rb b/spec/controllers/new_user/dossiers_controller_spec.rb index b66a5f448..6bc393ea2 100644 --- a/spec/controllers/new_user/dossiers_controller_spec.rb +++ b/spec/controllers/new_user/dossiers_controller_spec.rb @@ -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