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:
Maikel
2023-05-26 14:06:14 +10:00
committed by GitHub

View File

@@ -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