diff --git a/spec/models/case_contact_spec.rb b/spec/models/case_contact_spec.rb index effdbc000c..6b9c457a5e 100644 --- a/spec/models/case_contact_spec.rb +++ b/spec/models/case_contact_spec.rb @@ -450,12 +450,9 @@ groups_with_types = case_contact.contact_groups_with_types - expect(groups_with_types).to eql( - { - "Family" => ["Parent"], - "Health" => ["Medical Professional", "Other Therapist"] - } - ) + expect(groups_with_types.keys).to match_array(["Family", "Health"]) + expect(groups_with_types["Family"]).to match_array(["Parent"]) + expect(groups_with_types["Health"]).to match_array(["Medical Professional", "Other Therapist"]) end end