Redirect to pdf attachement old name if not attached

This commit is contained in:
Paul Chavard 2019-09-10 11:09:51 +02:00
parent 0201a501c6
commit 347f03d2a9
6 changed files with 23 additions and 32 deletions

View file

@ -4,7 +4,7 @@ FactoryBot.define do
dossier { create(:dossier) }
end
trait :with_legacy_pdf do
trait :with_pdf do
pdf { Rack::Test::UploadedFile.new("./spec/fixtures/files/dossierPDF.pdf", 'application/pdf') }
end
end