From b788d3ce34f999866da92688cf234170bafbad77 Mon Sep 17 00:00:00 2001 From: Alec Turnbull Date: Fri, 31 Jan 2025 10:38:19 -0600 Subject: [PATCH] missing verification_metadata --- spec/aca_entities/atp/operations/aces/generate_xml_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/aca_entities/atp/operations/aces/generate_xml_spec.rb b/spec/aca_entities/atp/operations/aces/generate_xml_spec.rb index 44ca52072..dab3cd409 100644 --- a/spec/aca_entities/atp/operations/aces/generate_xml_spec.rb +++ b/spec/aca_entities/atp/operations/aces/generate_xml_spec.rb @@ -983,7 +983,6 @@ context 'when lawful_presence is set to X and person is us_citizen' do it 'should return the correct LawfulPresence codes and find SSN for VerificationCategoryCode' do - payload_hash. result = described_class.new.call(payload_hash.to_json) doc = Nokogiri::XML.parse(result.value!) verification_metadata = doc.xpath("//hix-core:VerificationMetadata", namespaces)[0] @@ -994,6 +993,9 @@ context 'when eligibility_code is set to 15 and the person is alien_lawfully_present' do it 'should return the correct EligibilityCode and find EligibleImmigrationStatus for VerificationCategoryCode' do + result = described_class.new.call(payload_hash.to_json) + doc = Nokogiri::XML.parse(result.value!) + verification_metadata = doc.xpath("//hix-core:VerificationMetadata", namespaces)[0] expect(verification_metadata.xpath("//hix-core:DHS-SAVEVerificationCode", namespaces)[0].text).to eq "15" expect(verification_metadata.xpath("//hix-core:VerificationCategoryCode", namespaces)[0].text).to eq "EligibleImmigrationStatus" end