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

Add more check to debug failures

This commit is contained in:
Kazuhiro NISHIYAMA 2022-06-30 15:36:34 +09:00
parent a5420b6fc1
commit 4b1f337ef2
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -15,7 +15,7 @@ describe "OpenSSL::X509::Name.verify" do
cert.sign key, OpenSSL::Digest.new('SHA1') cert.sign key, OpenSSL::Digest.new('SHA1')
store = OpenSSL::X509::Store.new store = OpenSSL::X509::Store.new
store.add_cert(cert) store.add_cert(cert)
store.verify(cert).should == true [store.verify(cert), store.error, store.error_string].should == [true, 0, "ok"]
end end
it "returns false for an expired certificate" do it "returns false for an expired certificate" do