1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature algorithm.

https://github.com/rubygems/rubygems/commit/e2d533591c
This commit is contained in:
Jarek Prokop 2022-09-09 15:22:31 +02:00 committed by Hiroshi SHIBATA
parent cbddc913d9
commit b7debaa801
Notes: git 2022-10-18 07:33:39 +00:00

View file

@ -151,7 +151,7 @@ class TestGemSecurity < Gem::TestCase
end
def test_class_re_sign
assert_equal "sha1WithRSAEncryption", EXPIRED_CERT.signature_algorithm
assert_equal "sha256WithRSAEncryption", EXPIRED_CERT.signature_algorithm
re_signed = Gem::Security.re_sign EXPIRED_CERT, PRIVATE_KEY, 60
assert_in_delta Time.now, re_signed.not_before, 10