|
|
|
|
@ -2048,9 +2048,11 @@ RSpec.describe LettingsLog do
|
|
|
|
|
before do |
|
|
|
|
Timecop.freeze(Time.zone.local(2022, 4, 2)) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
after do |
|
|
|
|
Timecop.unfreeze |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
let(:scheme) { FactoryBot.create(:scheme) } |
|
|
|
|
let!(:supported_housing_lettings_log) do |
|
|
|
|
described_class.create!({ |
|
|
|
|
@ -2066,8 +2068,6 @@ RSpec.describe LettingsLog do
|
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let(:location) { FactoryBot.create(:location, scheme:) } |
|
|
|
|
|
|
|
|
|
it "correctly infers and saves the renewal date" do |
|
|
|
|
@ -2835,7 +2835,6 @@ RSpec.describe LettingsLog do
|
|
|
|
|
Timecop.unfreeze |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "with values represented as human readable labels" do |
|
|
|
|
before do |
|
|
|
|
Timecop.freeze(Time.utc(2022, 6, 5)) |
|
|
|
|
|