Skip to content

Commit

Permalink
missing verification_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ATBull81 committed Jan 31, 2025
1 parent 176ac61 commit b788d3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/aca_entities/atp/operations/aces/generate_xml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit b788d3c

Please sign in to comment.