File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,18 @@ def setup
11
11
@pem = File . expand_path ( '../EntrustnetSecureServerCertificationAuthority.pem' , __FILE__ )
12
12
end
13
13
14
+ @@ssl_cert_file = ENV [ 'SSL_CERT_FILE' ]
15
+
16
+ def teardown
17
+ ENV [ 'SSL_CERT_FILE' ] = @@ssl_cert_file
18
+ end
19
+
14
20
def test_store_location_with_pem
15
21
ENV [ 'SSL_CERT_FILE' ] = nil
16
22
store = OpenSSL ::X509 ::Store . new
17
23
store . set_default_paths
18
24
assert !store . verify ( @cert )
19
-
25
+
20
26
ENV [ 'SSL_CERT_FILE' ] = @ca_cert
21
27
store = OpenSSL ::X509 ::Store . new
22
28
assert !store . verify ( @cert )
@@ -64,7 +70,7 @@ def test_use_non_existing_cert_file
64
70
65
71
def test_verfy_with_wrong_argument
66
72
store = OpenSSL ::X509 ::Store . new
67
- assert_raise ( TypeError ) { store . verify ( 'not an cert object' ) }
73
+ assert_raise ( TypeError ) { store . verify ( 'not a cert object' ) }
68
74
end
69
75
70
76
def test_add_cert_concurrently
You can’t perform that action at this time.
0 commit comments