This commit is contained in:
Camden Narzt 2017-08-21 19:25:37 -06:00
parent ab8a6f31e8
commit c9f4d1c35d
No known key found for this signature in database
GPG Key ID: E349304DE45D816B

View File

@ -204,10 +204,10 @@ describe CurlDownloadStrategy do
subject { described_class.new(name, resource) }
let(:name) { "foo" }
let(:url) { "http://example.com/foo.tar.gz" }
let(:resource) { double(Resource, url: url, mirrors: [], specs: {user: "download:123456"}, version: nil) }
let(:resource) { double(Resource, url: url, mirrors: [], specs: { user: "download:123456" }, version: nil) }
it "parses the opts and sets the corresponding args" do
expect(subject.send(:_curl_opts)).to eq(["--user","download:123456"])
expect(subject.send(:_curl_opts)).to eq(["--user", "download:123456"])
end
end