Skip to content

Commit

Permalink
Fix two_step_verification_exemption factory expiry date
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
floehopper committed Jul 31, 2023
1 parent 6097a1c commit 3e4fffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/factories/two_step_verification_exemption.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3e4fffa

Please sign in to comment.