From 3e4fffaa8e56fd2e70684759f9947bb4b6ea3d02 Mon Sep 17 00:00:00 2001 From: James Mead Date: Mon, 31 Jul 2023 14:31:21 +0100 Subject: [PATCH] Fix two_step_verification_exemption factory expiry date The test on line 9 of test/models/two_step_verification_exemption_test.rb had started to fail today because the logic was wrong and it's the last day of the month today! Doh! --- test/factories/two_step_verification_exemption.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/factories/two_step_verification_exemption.rb b/test/factories/two_step_verification_exemption.rb index 77ef02ba2..7e02f567d 100644 --- a/test/factories/two_step_verification_exemption.rb +++ b/test/factories/two_step_verification_exemption.rb @@ -1,8 +1,8 @@ FactoryBot.define do factory :two_step_verification_exemption do reason { "a very good reason" } - expiry_day { Time.zone.today.day + 1 } - expiry_month { Time.zone.today.month } - expiry_year { Time.zone.today.year } + expiry_day { Time.zone.tomorrow.day } + expiry_month { Time.zone.tomorrow.month } + expiry_year { Time.zone.tomorrow.year } end end