demarches-normaliennes/spec/factories/attestation.rb
2019-08-27 17:42:52 +02:00

10 lines
247 B
Ruby

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