aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
diff options
context:
space:
mode:
authorJarek Prokop <jprokop@redhat.com>2022-09-09 15:22:31 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-18 16:33:15 +0900
commitb7debaa8015c7a3dba832954ecc93334f6853f37 (patch)
tree1f18e9f35c2ad19be80b6d8e68c4334793995c9b /test/rubygems
parentcbddc913d94dde97714eeab1eac8570ff6674201 (diff)
downloadruby-b7debaa8015c7a3dba832954ecc93334f6853f37.tar.gz
[rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature algorithm.
https://github.com/rubygems/rubygems/commit/e2d533591c
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_security.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_security.rb b/test/rubygems/test_gem_security.rb
index 518a508c86..0aecccdb27 100644
--- a/test/rubygems/test_gem_security.rb
+++ b/test/rubygems/test_gem_security.rb
@@ -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