test/rubygems/test_gem_remote_fetcher.rb: Remove a duplicated test

https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20200203T003005Z.log.html.gz
```
/home/hsbt/chkbuild/tmp/build/20200203T003005Z/ruby/test/rubygems/test_gem_remote_fetcher.rb:485: warning: method redefined; discarding old test_fetch_path_socket_error
/home/hsbt/chkbuild/tmp/build/20200203T003005Z/ruby/test/rubygems/test_gem_remote_fetcher.rb:167: warning: previous definition of test_fetch_path_socket_error was here
```
This commit is contained in:
Yusuke Endoh 2020-02-03 11:51:10 +09:00
Родитель d9552cbd5a
Коммит 0fa43b0c1b
1 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -164,21 +164,6 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
assert_equal 'uri scheme is invalid: nil', e.message
end
def test_fetch_path_socket_error
fetcher = Gem::RemoteFetcher.new nil
@fetcher = fetcher
def fetcher.request(uri, request_class, last_modified = nil)
raise SocketError, "oops"
end
uri = 'http://gems.example.com/yaml'
e = assert_raises Gem::RemoteFetcher::FetchError do
@fetcher.fetch_path(uri, nil, true)
end
assert_equal "SocketError: oops (#{uri})", e.message
end
def test_no_proxy
use_ui @stub_ui do
assert_data_from_server @fetcher.fetch_path(@server_uri)