Skip to content

Commit

Permalink
Updates specs
Browse files Browse the repository at this point in the history
  • Loading branch information
radavis committed Mar 25, 2024
1 parent c97180f commit 974b36d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/lib/va_profile/profile/v3/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@
expect(response.status).to eq(200)
expect(response.contacts.size).to eq(4)
types = response.contacts.map(&:contact_type)
expect(types).to match_array(VAProfile::Models::AssociatedPerson::CONTACT_TYPES)
valid_contact_types = [
VAProfile::Models::AssociatedPerson::EMERGENCY_CONTACT,
VAProfile::Models::AssociatedPerson::OTHER_EMERGENCY_CONTACT,
VAProfile::Models::AssociatedPerson::PRIMARY_NEXT_OF_KIN,
VAProfile::Models::AssociatedPerson::OTHER_NEXT_OF_KIN
]
expect(types).to match_array(valid_contact_types)
end
end

Expand Down

0 comments on commit 974b36d

Please sign in to comment.