aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/other/ssl_cert_spec.rb
blob: 2de4dfdd0cc3d927a6a073535bf24c33774d8322 (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"

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