Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (19 sloc) 0.722 kB
require 'test/unit'
require 'openssl'
class TestOpensslStub < Test::Unit::TestCase
def test_autoload_consts_error
# This test only makes sense if the gem isn't installed
if defined? OpenSSL::OPENSSL_DUMMY
assert_raise(LoadError) { OpenSSL::ASN1 }
assert_raise(LoadError) { OpenSSL::BN }
assert_raise(LoadError) { OpenSSL::Cipher }
assert_raise(LoadError) { OpenSSL::Config }
assert_raise(LoadError) { OpenSSL::Netscape }
assert_raise(LoadError) { OpenSSL::PKCS7 }
assert_raise(LoadError) { OpenSSL::PKey }
assert_raise(LoadError) { OpenSSL::Random }
assert_raise(LoadError) { OpenSSL::SSL }
assert_raise(LoadError) { OpenSSL::X509 }
end
end
end
Jump to Line
Something went wrong with that request. Please try again.