Skip to content

Commit

Permalink
Revert "Add specs"
Browse files Browse the repository at this point in the history
This reverts commit fe6e7d7.
  • Loading branch information
bblimke committed Mar 5, 2021
1 parent 79e60c9 commit b4c95c2
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions spec/acceptance/net_http/net_http_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,21 +365,5 @@ def perform_get_with_returning_block
path = '/example.jpg'
expect(WebMock::NetHTTPUtility.get_uri(net_http, path)).to eq('http://www.example.com:80/example.jpg')
end

it 'should work with IPv6 addresses' do
WebMock.stub_request(:get, 'http://[b2dc:5bdf:4f0d::3014:e0c1]:80/example.jpg')
uri = URI.parse('http://[b2dc:5bdf:4f0d::3014:e0c1]:80/example.jpg')
request = Net::HTTP::Get.new(uri)

expect { Net::HTTP.start(uri.hostname, uri.port) { |http| http.request(request) } }.not_to raise_error
end

it 'should work with IPv4 addresses' do
WebMock.stub_request(:get, 'http://181.152.137.168:80/example.jpg')
uri = URI.parse('http://181.152.137.168:80/example.jpg')
request = Net::HTTP::Get.new(uri)

expect { Net::HTTP.start(uri.hostname, uri.port) { |http| http.request(request) } }.not_to raise_error
end
end
end

0 comments on commit b4c95c2

Please sign in to comment.