diff --git a/spec/services/imports/case_logs_import_service_spec.rb b/spec/services/imports/case_logs_import_service_spec.rb index 2fe021f31..d8ad458ee 100644 --- a/spec/services/imports/case_logs_import_service_spec.rb +++ b/spec/services/imports/case_logs_import_service_spec.rb @@ -216,7 +216,7 @@ RSpec.describe Imports::CaseLogsImportService do end end - context "and the net income soft validation is triggered" do + context "and the net income soft validation is triggered (net_income_value_check)" do before do case_log_xml.at_xpath("//xmlns:Q8a").content = "1 Weekly" case_log_xml.at_xpath("//xmlns:Q8Money").content = 890.00 @@ -253,6 +253,19 @@ RSpec.describe Imports::CaseLogsImportService do end end + context "and the retirement soft validation is triggered (retirement_value_check)" do + before do + case_log_xml.at_xpath("//xmlns:P1Age").content = 68 + case_log_xml.at_xpath("//xmlns:P1Eco").content = "6) Not Seeking Work" + end + + it "completes the log" do + case_log_service.send(:create_log, case_log_xml) + case_log = CaseLog.find_by(old_id: case_log_id) + expect(case_log.status).to eq("completed") + end + end + context "and this is a supported housing log with multiple locations under a scheme" do let(:case_log_id) { "0b4a68df-30cc-474a-93c0-a56ce8fdad3b" }