ruby-changes:59910
From: Yusuke <ko1@a...>
Date: Mon, 3 Feb 2020 11:52:23 +0900 (JST)
Subject: [ruby-changes:59910] 0fa43b0c1b (master): test/rubygems/test_gem_remote_fetcher.rb: Remove a duplicated test
https://git.ruby-lang.org/ruby.git/commit/?id=0fa43b0c1b From 0fa43b0c1b0126ed714733486eb20f70bec953f8 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 3 Feb 2020 11:51:10 +0900 Subject: 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 ``` diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index 7f773fe..55278af 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -164,21 +164,6 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L164 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/