Skip to content

Commit

Permalink
FEEEEEDBACK
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthHater committed Nov 26, 2018
1 parent 14afb9e commit 80977c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/berkshelf/downloader_spec.rb
Expand Up @@ -77,8 +77,8 @@ module Berkshelf
end

it "that are absolute and uses the given absolute URI" do
allow(remote_cookbook).to receive(:location_path) { "http://some.bucket.somewhere.example.com:8081/repository/chef-proxy/api/v1" }
expect(CommunityREST).to receive(:new).with("http://some.bucket.somewhere.example.com:8081/repository/chef-proxy/api/v1", { ssl: {} }) { rest }
allow(remote_cookbook).to receive(:location_path) { "http://localhost:8081/repository/chef-proxy/api/v1" }
expect(CommunityREST).to receive(:new).with("http://localhost:8081/repository/chef-proxy/api/v1", { ssl: {} }) { rest }
expect(rest).to receive(:download).with(name, version)
subject.try_download(source, name, version)
end
Expand Down

0 comments on commit 80977c3

Please sign in to comment.