Sha256: 40c1b32dcf199e51d80781ea4ddb9e479a908d4e059d051a6a0d696f6cba69c2

Contents?: true

Size: 590 Bytes

Versions: 60

Compression:

Stored size: 590 Bytes

Contents

require 'spec_helper'

describe 'RestClient::Windows::RootCerts',
         :if => RestClient::Platform.windows? do
  let(:x509_store) { RestClient::Windows::RootCerts.instance.to_a }

  it 'should return at least one X509 certificate' do
    expect(x509_store.to_a).to have_at_least(1).items
  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|
      cert.should be_a(OpenSSL::X509::Certificate)
    end
  end
end

Version data entries

60 entries across 58 versions & 8 rubygems

Version Path
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-5.0.7 vendor/bundle/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-5.0.6 vendor/bundle/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-5.0.5 vendor/bundle/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-5.0.4 vendor/bundle/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-5.0.2 vendor/bundle/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-5.0.1 vendor/bundle/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/windows/root_certs_spec.rb