2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-27 17:42:52 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :attestation do
|
|
|
|
title { 'title' }
|
2020-07-20 16:28:51 +02:00
|
|
|
association :dossier
|
2019-08-27 17:42:52 +02:00
|
|
|
end
|
|
|
|
|
2019-09-10 11:09:51 +02:00
|
|
|
trait :with_pdf do
|
2020-06-30 17:53:54 +02:00
|
|
|
pdf { Rack::Test::UploadedFile.new('spec/fixtures/files/dossierPDF.pdf', 'application/pdf') }
|
2019-08-27 17:42:52 +02:00
|
|
|
end
|
|
|
|
end
|