From b4c95c27dc9af51b35695a80722d5af06b7949de Mon Sep 17 00:00:00 2001 From: Bartosz Blimke Date: Fri, 5 Mar 2021 23:59:17 +0100 Subject: [PATCH] Revert "Add specs" This reverts commit fe6e7d7bc2d9f0f2e9c7a207173ab930c549c2eb. --- spec/acceptance/net_http/net_http_spec.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/spec/acceptance/net_http/net_http_spec.rb b/spec/acceptance/net_http/net_http_spec.rb index 821e95e6..729c8afd 100644 --- a/spec/acceptance/net_http/net_http_spec.rb +++ b/spec/acceptance/net_http/net_http_spec.rb @@ -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