43569f687e
This is mostly for consistency (both styles were used before). Note: we still have to use `Rack::Test::UploadedFile.new` in factories, because of https://github.com/thoughtbot/factory_bot/issues/385.
13 lines
394 B
Ruby
13 lines
394 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
|