spec/unit/berkshelf/downloader_spec.rb in berkshelf-7.0.8 vs spec/unit/berkshelf/downloader_spec.rb in berkshelf-7.0.9

- old
+ new

@@ -3,18 +3,16 @@ module Berkshelf describe Downloader do let(:berksfile) do double(Berksfile, lockfile: lockfile, - dependencies: [] - ) + dependencies: []) end let(:lockfile) do double(Lockfile, - graph: graph - ) + graph: graph) end let(:graph) { double(Lockfile::Graph, locks: {}) } let(:self_signed_crt_path) { File.join(BERKS_SPEC_DATA, "trusted_certs") } let(:self_signed_crt) { OpenSSL::X509::Certificate.new(IO.read("#{self_signed_crt_path}/example.crt")) } @@ -122,18 +120,16 @@ validation_key: "validator.pem", artifactory_api_key: "secret", cookbook_copyright: "user", cookbook_email: "user@example.com", cookbook_license: "apachev2", - trusted_certs_dir: self_signed_crt_path - ) + trusted_certs_dir: self_signed_crt_path) end let(:berkshelf_config) do double(Config, ssl: double(verify: true), - chef: chef_config - ) + chef: chef_config) end before do allow(Berkshelf).to receive(:config).and_return(berkshelf_config) allow(subject).to receive(:ssl_policy).and_return(ssl_policy)