diff options
author | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-23 18:59:07 +0000 |
---|---|---|
committer | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-23 18:59:07 +0000 |
commit | 3f103ad0e9c2edb83d951678253bbde645fbc80d (patch) | |
tree | 8574ced3e43268e131055a09242300f9740d33a8 /test | |
parent | 7a05e0ae9f1983bb6446ef64092b58cbaa26bc45 (diff) | |
download | ruby-3f103ad0e9c2edb83d951678253bbde645fbc80d.tar.gz |
* test/openssl/test_509cert.rb: force sorted order for order-
sensitive test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_x509cert.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/openssl/test_x509cert.rb b/test/openssl/test_x509cert.rb index dd5751eb48..af643a8b26 100644 --- a/test/openssl/test_x509cert.rb +++ b/test/openssl/test_x509cert.rb @@ -45,10 +45,10 @@ class OpenSSL::TestX509Certificate < Test::Unit::TestCase ].each{|pk, digest| cert = issue_cert(@ca, pk, 1, Time.now, Time.now+3600, exts, nil, nil, digest) - assert_equal(cert.extensions[1].value, + assert_equal(cert.extensions.sort_by(&:to_s)[2].value, OpenSSL::TestUtils.get_subject_key_id(cert)) cert = OpenSSL::X509::Certificate.new(cert.to_der) - assert_equal(cert.extensions[1].value, + assert_equal(cert.extensions.sort_by(&:to_s)[2].value, OpenSSL::TestUtils.get_subject_key_id(cert)) } end |