summaryrefslogtreecommitdiff
path: root/spec/bundler/ssl_certs/certificate_manager_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/ssl_certs/certificate_manager_spec.rb')
-rw-r--r--spec/bundler/ssl_certs/certificate_manager_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/ssl_certs/certificate_manager_spec.rb b/spec/bundler/ssl_certs/certificate_manager_spec.rb
index 696b90e768..7cf601f6db 100644
--- a/spec/bundler/ssl_certs/certificate_manager_spec.rb
+++ b/spec/bundler/ssl_certs/certificate_manager_spec.rb
@@ -71,17 +71,17 @@ RSpec.describe Bundler::SSLCerts::CertificateManager do
context "when certificate manager is not up to date" do
before do
allow(subject).to receive(:up_to_date?).and_return(false)
- allow(Bundler::FileUtils).to receive(:rm)
- allow(Bundler::FileUtils).to receive(:cp)
+ allow(bundler_fileutils).to receive(:rm)
+ allow(bundler_fileutils).to receive(:cp)
end
it "should remove the current bundler certs" do
- expect(Bundler::FileUtils).to receive(:rm).with(subject.bundler_certs)
+ expect(bundler_fileutils).to receive(:rm).with(subject.bundler_certs)
subject.update!
end
it "should copy the rubygems certs into bundler certs" do
- expect(Bundler::FileUtils).to receive(:cp).with(subject.rubygems_certs, subject.bundler_cert_path)
+ expect(bundler_fileutils).to receive(:cp).with(subject.rubygems_certs, subject.bundler_cert_path)
subject.update!
end