We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3b4cc6 commit c655c17Copy full SHA for c655c17
spec/downloader/base_spec.rb
@@ -41,6 +41,22 @@
41
end
42
43
44
+ context "with equal and colons in the query path" do
45
+ let(:query) { 'test=query&with=equal&before=colon:param' }
46
+ let(:uri) { "https://example.com/#{filename}?#{query}" }
47
+ before do
48
+ stub_request(:get, uri).to_return(body: file)
49
+ end
50
+
51
+ it "leaves colon in resulting URI" do
52
+ expect(subject.process_uri(uri).query).to eq query
53
54
55
+ it "downloads a file" do
56
+ expect(subject.download(uri).file.read).to eq file
57
58
59
60
context 'with request headers' do
61
let(:authentication_headers) do
62
{
0 commit comments