demarches-normaliennes/spec/factories/bill_signature.rb
Paul Chavard c9ab80c880 WIP
2020-07-07 18:03:56 +02:00

10 lines
390 B
Ruby

FactoryBot.define do
factory :bill_signature do
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
end
end