Module: Adapters::Integration::SSL

Defined in:
test/adapters/integration.rb

Instance Method Summary collapse

Instance Method Details

#test_GET_ssl_fails_with_bad_certObject


67
68
69
70
71
72
73
74
# File 'test/adapters/integration.rb', line 67

def test_GET_ssl_fails_with_bad_cert
  ca_file = 'tmp/faraday-different-ca-cert.crt'
  conn = create_connection(:ssl => {:ca_file => ca_file})
  err = assert_raises Faraday::SSLError do
    conn.get('/ssl')
  end
  assert_includes err.message, "certificate"
end