Sha256: 6f054b9883a594e5a760de419fed33613dcc489462792da03e903676b45c58c9
Contents?: true
Size: 649 Bytes
Versions: 17
Compression:
Stored size: 649 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Stripe class CertificateBlacklistTest < Test::Unit::TestCase should "not trust revoked certificates" do assert_raises(Stripe::APIConnectionError) { Stripe::CertificateBlacklist.check_ssl_cert("https://revoked.stripe.com:444", Stripe::DEFAULT_CA_BUNDLE_PATH) } end should "trust api.stripe.com" do assert_true Stripe::CertificateBlacklist.check_ssl_cert("https://api.stripe.com", Stripe::DEFAULT_CA_BUNDLE_PATH) end end end
Version data entries
17 entries across 17 versions & 1 rubygems