Sha256: b21d79af292c65e1a16d7247e522ec05a5ebec8bf09fe77ff49e190ccfb3a528

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

require 'cert_validator/ocsp/null_validator'

describe CertValidator::NullOcspValidator do
  subject{ described_class.new good_cert, ca }
  let(:ca){ cert 'root' }
  let(:good_cert){ cert 'good' }

  it 'accepts a certificate and CA on construction' do
    expect{ described_class.new good_cert, ca }.to_not raise_error
  end

  describe 'with a good cert and CA' do
    it { is_expected.to_not be_available }

    it 'raises an error when asked to validate' do
      expect{ subject.valid? }.to raise_error CertValidator::OcspNotAvailableError
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cert_validator-0.0.1 spec/null_ocsp_validator_spec.rb