2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-06-17 11:01:41 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :bill_signature do
|
2020-03-12 14:32:06 +01:00
|
|
|
trait :with_serialized do
|
|
|
|
serialized { Rack::Test::UploadedFile.new('spec/fixtures/files/bill_signature/serialized.json', 'application/json') }
|
|
|
|
end
|
|
|
|
trait :with_signature do
|
|
|
|
signature { Rack::Test::UploadedFile.new('spec/fixtures/files/bill_signature/signature.der', 'application/x-x509-ca-cert') }
|
|
|
|
end
|
2019-06-17 11:01:41 +02:00
|
|
|
end
|
|
|
|
end
|