summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/other/ssl_cert_spec.rb15
-rw-r--r--spec/spec_helper.rb6
2 files changed, 20 insertions, 1 deletions
diff --git a/spec/other/ssl_cert_spec.rb b/spec/other/ssl_cert_spec.rb
index ac9283a218..04f7a1f25f 100644
--- a/spec/other/ssl_cert_spec.rb
+++ b/spec/other/ssl_cert_spec.rb
@@ -1,10 +1,23 @@
require 'spec_helper'
require 'bundler/ssl_certs/certificate_manager'
-describe "SSL Certificates", :if => (ENV['RGV'] == "master") do
+describe "SSL Certificates", :rubygems_master do
it "are up to date with Rubygems" do
rubygems = File.expand_path("../../../tmp/rubygems", __FILE__)
manager = Bundler::SSLCerts::CertificateManager.new(rubygems)
expect(manager).to be_up_to_date
end
+
+ hosts = %w(
+ d2chzxaqi4y7f8.cloudfront.net
+ rubygems.org
+ s3.amazonaws.com
+ 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
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index bef35a1aa9..774f10cecb 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -76,6 +76,12 @@ RSpec.configure do |config|
config.filter_run_excluding :rubygems => "2.2"
end
+ if ENV['RGV'] == "master"
+ config.filter_run :rubygems_master => true
+ else
+ config.filter_run_excluding :rubygems_master => true
+ end
+
config.filter_run :focused => true unless ENV['CI']
config.run_all_when_everything_filtered = true
config.alias_example_to :fit, :focused => true