Merge pull request #9866 from demarches-simplifiees/fix_identite

ETQ instructeur : correction de l'impression d'un dossier
This commit is contained in:
LeSim 2023-12-18 09:01:45 +00:00 committed by GitHub
commit 962506d355
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -9,7 +9,7 @@
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: @dossier.etablissement, profile: 'instructeur' }
- if @dossier.individual.present?
= render partial: "shared/dossiers/identite_individual", locals: { individual: @dossier.individual }
= render partial: "shared/dossiers/identite_individual", locals: { individual: @dossier.individual, dossier: @dossier }
%h2 Formulaire

View file

@ -1297,4 +1297,17 @@ describe Instructeurs::DossiersController, type: :controller do
expect(response.body).to include('a réaffecté ce dossier du groupe « défaut » au groupe « deuxième groupe »')
end
end
describe '#print' do
let(:dossier) { create(:dossier, :en_construction, procedure: procedure) }
subject do
get :print, params: {
procedure_id: procedure.id,
dossier_id: dossier.id
}
end
it { expect(subject).to have_http_status(:ok) }
end
end