From 3885308e9a2aa48f25313567525e375362253f47 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 10 Jul 2014 12:54:34 +0200 Subject: 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. --- test/unit/identity_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3