Sha256: 8b4066960e407705e988ccf583938da92a1726ce201b3705c0206368642bb820
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
require 'cert_validator/ocsp/extractor' describe CertValidator::RealOcspValidator::Extractor do it 'accepts a certificate on construction' do expect{ described_class.new cert 'good' }.to_not raise_error end describe 'with one OCSP endpoint' do subject { described_class.new cert 'good' } it 'has an OCSP extension' do expect(subject.has_ocsp_extension?).to be end it 'extracts the OCSP endpoint' do expect(subject.endpoint).to eq 'http://cert-validator-test.herokuapp.com/ocsp' end end describe 'with no OCSP endpoint' do subject { described_class.new cert 'crl_only' } it 'has no OCSP extension' do expect(subject.has_ocsp_extension?).to_not be end it 'extracts no OCSP endpoint' do expect(subject.endpoint).to be_nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cert_validator-0.0.1 | spec/ocsp_extractor_spec.rb |