Migrate attestation files to active_storage
This commit is contained in:
parent
a194ffa392
commit
a19b10b118
11 changed files with 289 additions and 96 deletions
10
spec/factories/attestation.rb
Normal file
10
spec/factories/attestation.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
FactoryBot.define do
|
||||
factory :attestation do
|
||||
title { 'title' }
|
||||
dossier { create(:dossier) }
|
||||
end
|
||||
|
||||
trait :with_legacy_pdf do
|
||||
pdf { Rack::Test::UploadedFile.new("./spec/fixtures/files/dossierPDF.pdf", 'application/pdf') }
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue