summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJames Wen <jrw2175@columbia.edu>2016-03-22 00:01:43 -0400
committerJames Wen <jrw2175@columbia.edu>2016-03-22 00:01:43 -0400
commit3ad737d0ca4a89d812af6c7650d450e3fe3e273f (patch)
treea7c45e4b6fde2ec369e3542741fdc98c34c02dcb /spec
parent293965725932aca85b7feb3ef7bc9f8dd6b6135b (diff)
downloadbundler-3ad737d0ca4a89d812af6c7650d450e3fe3e273f.tar.gz
Fix `Bundler::SSLCerts::CertificateManager` specs to use newsimplify-certs
subdirectory structure for ssl certs
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/ssl_certs/certificate_manager_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/bundler/ssl_certs/certificate_manager_spec.rb b/spec/bundler/ssl_certs/certificate_manager_spec.rb
index 5a1650b432..7ac8d66791 100644
--- a/spec/bundler/ssl_certs/certificate_manager_spec.rb
+++ b/spec/bundler/ssl_certs/certificate_manager_spec.rb
@@ -3,9 +3,9 @@ require "spec_helper"
require "bundler/ssl_certs/certificate_manager"
describe Bundler::SSLCerts::CertificateManager do
- let(:rubygems_path) { root }
- let(:stub_cert) { File.join(root.to_s, "lib", "rubygems", "ssl_certs", "ssl-cert.pem") }
- let(:rubygems_certs_dir) { File.join(root.to_s, "lib", "rubygems", "ssl_certs") }
+ let(:rubygems_path) { root }
+ let(:stub_cert) { File.join(root.to_s, "lib", "rubygems", "ssl_certs", "rubygems.org", "ssl-cert.pem") }
+ let(:rubygems_certs_dir) { File.join(root.to_s, "lib", "rubygems", "ssl_certs", "rubygems.org") }
subject { described_class.new(rubygems_path) }
@@ -37,13 +37,13 @@ describe Bundler::SSLCerts::CertificateManager do
end
it "should set bundler_certs as the paths of the bundler ssl certs" do
- expect(subject.bundler_certs).to include(File.join(root, "lib/bundler/ssl_certs/AddTrustExternalCARoot.pem"))
- expect(subject.bundler_certs).to include(File.join(root, "lib/bundler/ssl_certs/GeoTrustGlobalCA.pem"))
+ expect(subject.bundler_certs).to include(File.join(root, "lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem"))
+ expect(subject.bundler_certs).to include(File.join(root, "lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRoot.pem"))
end
context "when rubygems_path is not nil" do
it "should set rubygems_certs" do
- expect(subject.rubygems_certs).to include(File.join(root, "lib", "rubygems", "ssl_certs", "ssl-cert.pem"))
+ expect(subject.rubygems_certs).to include(File.join(root, "lib", "rubygems", "ssl_certs", "rubygems.org", "ssl-cert.pem"))
end
end
end