Browse Source

feat: remove dependency on current date in test (#2382)

pull/2348/head^2
natdeanlewissoftwire 8 months ago committed by GitHub
parent
commit
14fd937e49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      spec/models/validations/household_validations_spec.rb

5
spec/models/validations/household_validations_spec.rb

@ -429,10 +429,11 @@ RSpec.describe Validations::HouseholdValidations do
end end
context "with 2024 logs" do context "with 2024 logs" do
let(:log_date) { Time.zone.local(2024, 4, 1) }
before do before do
Timecop.freeze(Time.zone.local(2024, 4, 1)) Timecop.freeze(log_date)
Singleton.__init__(FormHandler) Singleton.__init__(FormHandler)
record.update!(startdate: Time.zone.local(2024, 4, 1))
end end
after do after do

Loading…
Cancel
Save