spec/httpi/adapter/curb_spec.rb in httpi-2.4.2 vs spec/httpi/adapter/curb_spec.rb in httpi-2.4.3

- old
+ new

@@ -255,11 +255,10 @@ adapter.request(:get) end it 'to 2 when ssl_version is specified as SSLv2/SSLv23' do - version = OpenSSL::SSL::SSLContext::METHODS.reject { |method| method.match(/server|client/) } - version = version.select { |method| method.to_s.match(/SSLv2|SSLv23/) }.first + version = HTTPI::Auth::SSL::SSL_VERSIONS.select { |method| method.to_s.match(/SSLv2|SSLv23/) }.first request.auth.ssl.ssl_version = version curb.expects(:ssl_version=).with(2) adapter.request(:get) end