1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/factories/x509_certificates.rb

12 lines
331 B
Ruby
Raw Normal View History

2019-09-10 18:57:12 -04:00
# frozen_string_literal: true
FactoryBot.define do
factory :self_signed_x509_certificate, class: X509Certificate do
pem { File.read Rails.root.join 'fixtures', 'ca.crt' }
subject { '/CN=example.com' }
issuer { subject }
not_before { Faker::Time.backward.utc }
not_after { Faker::Time.forward.utc }
2019-09-10 18:57:12 -04:00
end
end