fix(print): missing dossier var
This commit is contained in:
parent
c0b444d747
commit
9bb89f7e3e
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