Avoid flaky spec by matching the array

Context: https://github.com/openfoodfoundation/openfoodnetwork/actions/runs/5081492387/jobs/9129944001?pr=10896
This commit is contained in:
Jean-Baptiste Bellet
2023-05-25 17:08:43 +02:00
parent ccb183d60b
commit 4edb159ef8

View File

@@ -76,7 +76,7 @@ describe Admin::BulkLineItemsController, type: :controller do
end
it "retrives a list of line items which match the criteria" do
expect(line_item_ids).to eq [line_item2.id, line_item3.id]
expect(line_item_ids).to match_array [line_item2.id, line_item3.id]
end
end