2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-06 17:05:37 +01:00
|
|
|
describe 'dossiers/dossier_vide', type: :view do
|
2024-01-23 09:52:20 +01:00
|
|
|
let(:procedure) { create(:procedure, :with_all_champs) }
|
2022-05-04 16:03:19 +02:00
|
|
|
|
|
|
|
before do
|
|
|
|
assign(:procedure, procedure)
|
2024-03-12 13:42:06 +01:00
|
|
|
assign(:revision, procedure.draft_revision)
|
2022-05-04 16:03:19 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
subject { render }
|
|
|
|
|
|
|
|
it 'renders a PDF document with empty fields' do
|
|
|
|
subject
|
|
|
|
expect(rendered).to be_present
|
|
|
|
end
|
|
|
|
end
|