diff options
author | Azul <azul@leap.se> | 2014-07-10 12:54:34 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-07-14 10:54:31 +0200 |
commit | 3885308e9a2aa48f25313567525e375362253f47 (patch) | |
tree | 2c06543a2667d5d3fbc7d82da9156e5cebe25d77 /test/unit/identity_test.rb | |
parent | 60052d15ca02b1c40ed265bed6515880d2851b8f (diff) |
minor: fix identity test for storing certs
we compare the cert that expires last to the one we just saved. So we need to make sure the one we saved is the one that expires last.
Diffstat (limited to 'test/unit/identity_test.rb')
-rw-r--r-- | test/unit/identity_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/identity_test.rb b/test/unit/identity_test.rb index cb0f6bd..77104b6 100644 --- a/test/unit/identity_test.rb +++ b/test/unit/identity_test.rb @@ -177,7 +177,9 @@ class IdentityTest < ActiveSupport::TestCase end def cert_stub - @cert_stub ||= stub expiry: 1.month.from_now, + # make this expire later than the others so it's on top + # when sorting by expiry descending. + @cert_stub ||= stub expiry: 2.month.from_now, fingerprint: SecureRandom.hex end end |