check arrays

expect(response_json).to match_array expect_json
# passed
expect([1,2,3]).to match_array [1,2,3]
# passed
expect([1,2,3]).to match_array [3,2,1]
# passed
expect([1,2,3]).to match_array [1,3,2]
# passed
expect([1,2,3]).to match_array [2,1,3]
# passed

Reference

results matching ""

    No results matching ""