demarches-normaliennes/spec/factories/attestation.rb

13 lines
261 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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