Sha256: 22eb7195bf364792762c7a834b9b9785d618b0cddec2b316e441a934047f1691

Contents?: true

Size: 670 Bytes

Versions: 9

Compression:

Stored size: 670 Bytes

Contents

# require File.expand_path('../../test_helper', __FILE__)

# module Paid

#   class CertificateBlacklistTest < Test::Unit::TestCase
#     should "not trust revoked certificates" do
#       assert_raises(Paid::APIConnectionError) {
#         Paid::CertificateBlacklist.check_ssl_cert("https://revoked.paidapi.com:444",
#                                                     Paid::DEFAULT_CA_BUNDLE_PATH)
#       }
#     end

#     should "trust api.paidapi.com" do
#       assert_true Paid::CertificateBlacklist.check_ssl_cert("https://api.paidapi.com",
#                                                               Paid::DEFAULT_CA_BUNDLE_PATH)
#     end
#   end
# end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
paid-0.1.0 test/paid/certificate_blacklist_test.rb
paid-0.0.8 test/paid/certificate_blacklist_test.rb
paid-0.0.7 test/paid/certificate_blacklist_test.rb
paid-0.0.6 test/paid/certificate_blacklist_test.rb
paid-0.0.5 test/paid/certificate_blacklist_test.rb
paid-0.0.4 test/paid/certificate_blacklist_test.rb
paid-0.0.3 test/paid/certificate_blacklist_test.rb
paid-0.0.2 test/paid/certificate_blacklist_test.rb
paid-0.0.1 test/paid/certificate_blacklist_test.rb