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/spec/models/x509_certificate_request_spec.rb

27 lines
586 B
Ruby
Raw Normal View History

2019-09-10 09:50:26 -04:00
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe X509CertificateRequest do
subject { create :x509_certificate_request }
describe '#rsa_public_key' do
it do
is_expected.to \
validate_presence_of(:rsa_public_key).with_message(:required)
end
end
describe '#distinguished_name' do
it { is_expected.to validate_presence_of :distinguished_name }
it do
is_expected.to validate_length_of(:distinguished_name).is_at_most(10_000)
end
end
2019-09-10 12:22:34 -04:00
describe '#pem' do
it { is_expected.to validate_presence_of :pem }
end
2019-09-10 09:50:26 -04:00
end