demarches-normaliennes/spec/factories/attestation.rb
2020-08-18 15:57:36 +02:00

10 lines
230 B
Ruby

FactoryBot.define do
factory :attestation do
title { 'title' }
association :dossier
end
trait :with_pdf do
pdf { Rack::Test::UploadedFile.new('spec/fixtures/files/dossierPDF.pdf', 'application/pdf') }
end
end