2023-03-06 17:05:37 +01:00
|
|
|
describe 'dossiers/dossier_vide', type: :view do
|
2022-05-04 16:34:20 +02:00
|
|
|
let(:procedure) { create(:procedure, :with_all_champs, :with_drop_down_list) }
|
2022-05-04 16:03:19 +02:00
|
|
|
let(:dossier) { create(:dossier, procedure: procedure) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
assign(:procedure, procedure)
|
|
|
|
assign(:dossier, dossier)
|
|
|
|
end
|
|
|
|
|
|
|
|
subject { render }
|
|
|
|
|
|
|
|
it 'renders a PDF document with empty fields' do
|
|
|
|
subject
|
|
|
|
expect(rendered).to be_present
|
|
|
|
end
|
|
|
|
end
|