mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Fixes false PASS Webcal URI test
This commit is contained in:
parent
0c8a7c4d83
commit
574c8faf87
2 changed files with 5 additions and 3 deletions
|
@ -12,7 +12,7 @@ module HTTParty
|
|||
Net::HTTP::Copy
|
||||
]
|
||||
|
||||
SupportedURISchemes = ['http', 'https', nil]
|
||||
SupportedURISchemes = ['http', 'https', 'webcal', nil]
|
||||
|
||||
NON_RAILS_QUERY_STRING_NORMALIZER = proc do |query|
|
||||
Array(query).sort_by { |a| a[0].to_s }.map do |key, value|
|
||||
|
|
|
@ -806,9 +806,11 @@ RSpec.describe HTTParty do
|
|||
end
|
||||
|
||||
it "should accept webcal URIs" do
|
||||
stub_http_response_with('google.html')
|
||||
uri = 'http://google.com/'
|
||||
FakeWeb.register_uri(:get, uri, body: 'stuff')
|
||||
uri = 'webcal://google.com/'
|
||||
expect do
|
||||
HTTParty.get('webcal://google.com')
|
||||
HTTParty.get(uri)
|
||||
end.not_to raise_error
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue