summaryrefslogtreecommitdiff
path: root/spec/bundler/other/ssl_cert_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/other/ssl_cert_spec.rb')
-rw-r--r--spec/bundler/other/ssl_cert_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/bundler/other/ssl_cert_spec.rb b/spec/bundler/other/ssl_cert_spec.rb
new file mode 100644
index 0000000000..6d957276fc
--- /dev/null
+++ b/spec/bundler/other/ssl_cert_spec.rb
@@ -0,0 +1,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