spec/certmeister/base_spec.rb in certmeister-2.0.0 vs spec/certmeister/base_spec.rb in certmeister-2.1.0

- old
+ new

@@ -199,7 +199,16 @@ expect { ca.remove(cn: 'axl.starjuice.net') }.to raise_error(Certmeister::StoreError) end end + describe "#ca_cert_pem" do + + it "exposes the CA certificate in PEM format" do + ca = Certmeister.new(CertmeisterConfigHelper::valid_config) + expect(ca.ca_cert_pem).to match(/-----BEGIN CERTIFICATE-----/) + end + + end + end