test/commands/test_remote.rb in zold-0.14.39 vs test/commands/test_remote.rb in zold-0.14.40

- old
+ new

@@ -59,11 +59,11 @@ status: 404 ) stub_request(:get, 'http://localhost:999/remotes').to_return( status: 404 ) - stub_request(:get, 'http://rubygems.org/api/v1/versions/zold/latest.json').to_return( + stub_request(:get, 'https://rubygems.org/api/v1/versions/zold/latest.json').to_return( status: 200, body: '{"version": "0.0.0"}' ) cmd = Zold::Remote.new(remotes: remotes, log: test_log) cmd.run(%w[remote clean]) @@ -88,22 +88,22 @@ all: [ { host: zero.host, port: zero.port } ] }.to_json ) - stub_request(:get, 'http://rubygems.org/api/v1/versions/zold/latest.json').to_return( + stub_request(:get, 'https://rubygems.org/api/v1/versions/zold/latest.json').to_return( status: 200, body: '{"version": "9.9.9"}' ) log = Minitest::Test::TestLogger.new cmd = Zold::Remote.new(remotes: remotes, log: log) cmd.run(%w[remote clean]) cmd.run(['remote', 'add', zero.host, zero.port.to_s, '--skip-ping']) cmd.run(['remote', 'update', '--ignore-score-weakness', '--skip-ping', '--reboot']) assert(log.msg.to_s.include?(', reboot!')) log.msg = [] - stub_request(:get, 'http://rubygems.org/api/v1/versions/zold/latest.json').to_return( + stub_request(:get, 'https://rubygems.org/api/v1/versions/zold/latest.json').to_return( status: 200, body: "{\"version\": \"#{Zold::VERSION}\"}" ) cmd.run(['remote', 'update', '--ignore-score-weakness', '--skip-ping', '--reboot']) assert(!log.msg.to_s.include?(', reboot!')) @@ -147,10 +147,10 @@ all: [ { host: 'localhost', port: 8883 } ] }.to_json ) - stub_request(:get, 'http://rubygems.org/api/v1/versions/zold/latest.json').to_return( + stub_request(:get, 'https://rubygems.org/api/v1/versions/zold/latest.json').to_return( status: 200, body: '{"version": "0.0.0"}' ) stub_request(:get, 'http://localhost:8883/remotes').to_return(status: 404) cmd = Zold::Remote.new(remotes: remotes, log: test_log)