File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def test_add_cert_concurrently
152
152
end
153
153
end
154
154
155
- def test_adding_pem_to_store
155
+ def test_adding_pem_to_store_like_rubygems
156
156
debug = false
157
157
#OpenSSL.debug = true
158
158
# mimic what rubygems/request#add_rubygems_trusted_certs does to find the .pem certificates
@@ -171,7 +171,7 @@ def test_adding_pem_to_store
171
171
# only verify on self signed certifactes
172
172
assert store . verify ( cert ) if pem !~ /COMODORSA|AddTrustExternalCARoot/
173
173
end
174
- end
174
+ end if defined? ( JRUBY_VERSION ) && Gem :: Version . create ( JRUBY_VERSION ) >= Gem :: Version . create ( '9.1.17.0' )
175
175
176
176
def test_verify
177
177
@rsa1024 = OpenSSL ::PKey ::RSA . new SSLTestHelper ::TEST_KEY_RSA1024 # OpenSSL::TestUtils::TEST_KEY_RSA1024
You can’t perform that action at this time.
0 commit comments