demarches-normaliennes/spec/factories/attestation_template.rb
2019-09-10 10:49:12 +02:00

13 lines
398 B
Ruby

FactoryBot.define do
factory :attestation_template do
title { 'title' }
body { 'body' }
footer { 'footer' }
activated { true }
end
trait :with_files do
logo { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'image/png') }
signature { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'image/png') }
end
end