Skip to content

Commit

Permalink
Add the test cases from #2473
Browse files Browse the repository at this point in the history
  • Loading branch information
coneybeare authored and mshibuya committed Jan 17, 2021
1 parent c3b4cc6 commit c655c17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/downloader/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@
end
end

context "with equal and colons in the query path" do
let(:query) { 'test=query&with=equal&before=colon:param' }
let(:uri) { "https://example.com/#{filename}?#{query}" }
before do
stub_request(:get, uri).to_return(body: file)
end

it "leaves colon in resulting URI" do
expect(subject.process_uri(uri).query).to eq query
end

it "downloads a file" do
expect(subject.download(uri).file.read).to eq file
end
end

context 'with request headers' do
let(:authentication_headers) do
{
Expand Down

0 comments on commit c655c17

Please sign in to comment.