Browse Source

make minor amendments to failing tests

pull/1448/head
Arthur Campbell 3 years ago
parent
commit
3c421bc0dd
  1. 2
      spec/models/validations/financial_validations_spec.rb
  2. 4
      spec/requests/lettings_logs_controller_spec.rb

2
spec/models/validations/financial_validations_spec.rb

@ -86,7 +86,7 @@ RSpec.describe Validations::FinancialValidations do
end end
context "when outstanding rent or charges is yes" do context "when outstanding rent or charges is yes" do
let(:record) { FactoryBot.create(:lettings_log, :about_completed, startdate: Time.zone.now) } let(:record) { FactoryBot.create(:lettings_log, :about_completed, startdate: Time.zone.local(2023, 1, 1)) }
it "expects that a shortfall is provided" do it "expects that a shortfall is provided" do
record.hbrentshortfall = 1 record.hbrentshortfall = 1

4
spec/requests/lettings_logs_controller_spec.rb

@ -891,14 +891,14 @@ RSpec.describe LettingsLogsController, type: :request do
end end
end end
context "when a lettings log is for a renewal of supported housing, so property information does not need to show" do context "when a lettings log is for a renewal of supported housing, property information does not need to show" do
let(:lettings_log) do let(:lettings_log) do
FactoryBot.create( FactoryBot.create(
:lettings_log, :lettings_log,
owning_organisation: user.organisation, owning_organisation: user.organisation,
managing_organisation: user.organisation, managing_organisation: user.organisation,
created_by: user, created_by: user,
startdate: Time.zone.now, startdate: Time.zone.local(2023, 1, 1),
renewal: 1, renewal: 1,
needstype: 2, needstype: 2,
rent_type: 3, rent_type: 3,

Loading…
Cancel
Save