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:
parent
a5420b6fc1
commit
4b1f337ef2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue