Browse Source

end unclosed Timecop freeze causing flaky tests

pull/2995/head
Carolyn 2 months ago
parent
commit
742fac55b9
  1. 4
      spec/models/lettings_log_derived_fields_spec.rb

4
spec/models/lettings_log_derived_fields_spec.rb

@ -1194,6 +1194,10 @@ RSpec.describe LettingsLog, type: :model do
Timecop.freeze(Time.zone.local(2025, 5, 5)) Timecop.freeze(Time.zone.local(2025, 5, 5))
end end
after do
Timecop.return
end
it "derives the most recent let type as London Living Rent basis if it is a renewal" do it "derives the most recent let type as London Living Rent basis if it is a renewal" do
log.assign_attributes(renewal: 1, rent_type:) log.assign_attributes(renewal: 1, rent_type:)

Loading…
Cancel
Save