Skip to content

Commit

Permalink
Fix flaky partners requests request spec (#4870)
Browse files Browse the repository at this point in the history
We were expecting the `family_zipcodes_list` to have a certain order
but no order is guaranteed in the request.
  • Loading branch information
coalest authored Dec 19, 2024
1 parent 0df6963 commit a943f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/partners_requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
families_served: 3,
children_served: 4,
family_zipcodes: 2,
family_zipcodes_list: %w(45612-123 45612-126)
family_zipcodes_list: contain_exactly("45612-126", "45612-123") # order of zipcodes not guaranteed
}
end

Expand All @@ -127,7 +127,7 @@
context "when the partner is invited" do
it "includes impact metrics" do
subject
expect(assigns[:impact_metrics]).to eq(expected_impact_metrics)
expect(assigns[:impact_metrics]).to match(expected_impact_metrics)
end
end

Expand Down

0 comments on commit a943f81

Please sign in to comment.