summaryrefslogtreecommitdiff
path: root/spec/bundler/other/ssl_cert_spec.rb
blob: 6d957276fc6f4bcc95848698f6f18cdf2512d2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require "bundler/ssl_certs/certificate_manager"

RSpec.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