diff --git a/app/controllers/backoffice/dossiers_controller.rb b/app/controllers/backoffice/dossiers_controller.rb index 82b1395e5..0defef003 100644 --- a/app/controllers/backoffice/dossiers_controller.rb +++ b/app/controllers/backoffice/dossiers_controller.rb @@ -60,7 +60,7 @@ class Backoffice::DossiersController < Backoffice::DossiersListController NotificationMailer.dossier_validated(@facade.dossier).deliver_now! - render 'show' + redirect_to backoffice_dossier_path(id: @facade.dossier.id) end def receive diff --git a/spec/services/render_partial_service_spec.rb b/spec/services/render_partial_service_spec.rb index 736e46a7f..17d81697e 100644 --- a/spec/services/render_partial_service_spec.rb +++ b/spec/services/render_partial_service_spec.rb @@ -14,6 +14,6 @@ describe RenderPartialService do describe 'left_panel' do subject { service.left_panel } - it { is_expected.to eq 'layouts/left_panel/_leftpanel_'+controller.to_s.parameterize + '_' + method.to_s } + it { is_expected.to eq 'layouts/left_panel/_left_panel_'+controller.to_s.parameterize + '_' + method.to_s } end -end \ No newline at end of file +end