|
|
@ -216,7 +216,7 @@ RSpec.describe Imports::CaseLogsImportService do |
|
|
|
end |
|
|
|
end |
|
|
|
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 |
|
|
|
before do |
|
|
|
case_log_xml.at_xpath("//xmlns:Q8a").content = "1 Weekly" |
|
|
|
case_log_xml.at_xpath("//xmlns:Q8a").content = "1 Weekly" |
|
|
|
case_log_xml.at_xpath("//xmlns:Q8Money").content = 890.00 |
|
|
|
case_log_xml.at_xpath("//xmlns:Q8Money").content = 890.00 |
|
|
@ -253,6 +253,19 @@ RSpec.describe Imports::CaseLogsImportService do |
|
|
|
end |
|
|
|
end |
|
|
|
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 |
|
|
|
context "and this is a supported housing log with multiple locations under a scheme" do |
|
|
|
let(:case_log_id) { "0b4a68df-30cc-474a-93c0-a56ce8fdad3b" } |
|
|
|
let(:case_log_id) { "0b4a68df-30cc-474a-93c0-a56ce8fdad3b" } |
|
|
|
|
|
|
|
|
|
|
|