demarches-normaliennes/spec/factories/bill_signature.rb

13 lines
421 B
Ruby
Raw Normal View History

# 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