Merge pull request #9866 from demarches-simplifiees/fix_identite
ETQ instructeur : correction de l'impression d'un dossier
This commit is contained in:
commit
962506d355
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue