Module: Hurley::Test::Integration::SSL
- Defined in:
- lib/hurley/test/integration.rb
Instance Method Summary collapse
Instance Method Details
#test_GET_ssl_fails_with_bad_cert ⇒ Object
221 222 223 224 225 226 227 228 229 |
# File 'lib/hurley/test/integration.rb', line 221 def test_GET_ssl_fails_with_bad_cert client..ca_file = "tmp/hurley-different-ca-cert.crt" err = assert_raises Hurley::SSLError do client.get("/ssl") end assert_includes err., "certificate" end |
#test_GET_ssl_skips_verification ⇒ Object
231 232 233 234 235 |
# File 'lib/hurley/test/integration.rb', line 231 def test_GET_ssl_skips_verification client..ca_file = "tmp/hurley-different-ca-cert.crt" client..skip_verification = true assert_equal "true", client.get("/ssl").body end |