From bcf64940c039593634d03ea0db5a60295c438fee Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Thu, 18 Jul 2024 14:53:05 +0100 Subject: [PATCH] Remove new 2023 specific test --- spec/models/lettings_log_spec.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/spec/models/lettings_log_spec.rb b/spec/models/lettings_log_spec.rb index 5c40fbe08..2001c0bfa 100644 --- a/spec/models/lettings_log_spec.rb +++ b/spec/models/lettings_log_spec.rb @@ -512,18 +512,6 @@ RSpec.describe LettingsLog do create_list(:location, 2, scheme: new_scheme) end - context "with a 2023 log" do - let(:log) { create(:lettings_log, :completed, :sh, :ignore_validation_errors, startdate: Time.zone.local(2024, 1, 1), owning_organisation:, scheme_id: old_scheme.id, location_id: old_location.id) } - - it "clears the location set on the log" do - expect { log.update!(scheme: new_scheme) }.to change(log, :location_id).from(old_location.id).to(nil) - end - - it "recalculates the log status" do - expect { log.update!(scheme: new_scheme) }.to change(log, :status).from("completed").to("in_progress") - end - end - context "with a current year log" do let(:log) { create(:lettings_log, :completed, :sh, :startdate_today, owning_organisation:, scheme_id: old_scheme.id, location_id: old_location.id) }