mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #10895 from jibees/10894-flaky-speccontrollersapiv0order_cycles_controller_specrb89
Fix flaky spec: Prefer using `match_array` over `eq` to compare array
This commit is contained in:
@@ -91,7 +91,7 @@ module Api
|
||||
q: { with_properties: [supplier_property.id] }
|
||||
|
||||
expect(response.status).to eq 200
|
||||
expect(product_ids).to eq [product1.id, product2.id]
|
||||
expect(product_ids).to match_array [product1.id, product2.id]
|
||||
expect(product_ids).to_not include product3.id
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user