Sha256: 5687c6c2a9ae9b4a241181b4744811c173b5181e4b54ef9ffa895218226d7181
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
require_relative '../_lib' describe 'RestMan::Windows::RootCerts', :if => RestMan::Platform.windows? do let(:x509_store) { RestMan::Windows::RootCerts.instance.to_a } it 'should return at least one X509 certificate' do expect(x509_store.to_a.size).to be >= 1 end it 'should return an X509 certificate with a subject' do x509 = x509_store.first expect(x509.subject.to_s).to match(/CN=.*/) end it 'should return X509 certificate objects' do x509_store.each do |cert| expect(cert).to be_a(OpenSSL::X509::Certificate) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest-man-1.0.0 | spec/unit/windows/root_certs_spec.rb |