aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other/ssl_cert_spec.rb
blob: e1a134c91937765963fddd8c19813ae3a9e11bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true
require "spec_helper"
require "bundler/ssl_certs/certificate_manager"

describe "SSL Certificates", :rubygems_master do
  hosts = %w(
    rubygems.org
    index.rubygems.org
    rubygems.global.ssl.fastly.net
    staging.rubygems.org
  )

  hosts.each do |host|
    it "can securely connect to #{host}", :realworld do
      Bundler::SSLCerts::CertificateManager.new.connect_to(host)
    end
  end
end