From 33ae0d52c482a27145d89a4cf1398960805ae6c4 Mon Sep 17 00:00:00 2001 From: Arthur Campbell <51094020+arfacamble@users.noreply.github.com> Date: Fri, 31 Mar 2023 11:03:29 +0100 Subject: [PATCH] undo testing change that hides rare error (#1500) --- spec/models/validations/financial_validations_spec.rb | 2 +- spec/requests/lettings_logs_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/validations/financial_validations_spec.rb b/spec/models/validations/financial_validations_spec.rb index 46db74f61..8cb777029 100644 --- a/spec/models/validations/financial_validations_spec.rb +++ b/spec/models/validations/financial_validations_spec.rb @@ -86,7 +86,7 @@ RSpec.describe Validations::FinancialValidations do end context "when outstanding rent or charges is yes" do - let(:record) { FactoryBot.create(:lettings_log, :about_completed, startdate: Time.zone.local(2023, 1, 1)) } + let(:record) { FactoryBot.create(:lettings_log, :about_completed, startdate: Time.zone.now) } it "expects that a shortfall is provided" do record.hbrentshortfall = 1 diff --git a/spec/requests/lettings_logs_controller_spec.rb b/spec/requests/lettings_logs_controller_spec.rb index 298a594e0..6661d160a 100644 --- a/spec/requests/lettings_logs_controller_spec.rb +++ b/spec/requests/lettings_logs_controller_spec.rb @@ -898,7 +898,7 @@ RSpec.describe LettingsLogsController, type: :request do owning_organisation: user.organisation, managing_organisation: user.organisation, created_by: user, - startdate: Time.zone.local(2023, 1, 1), + startdate: Time.zone.now, renewal: 1, needstype: 2, rent_type: 3,