зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature algorithm.
https://github.com/rubygems/rubygems/commit/e2d533591c
This commit is contained in:
Родитель
cbddc913d9
Коммит
b7debaa801
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче