<a href="https:&#x2F;&#x2F;github.com&#x2F;jbranchaud&#x2F;til&#x2F;blob&#x2F;master&#x2F;ruby&#x2F;comparing-arrays-in-rspec.md#comparing-arrays-in-rspec" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jbranchaud&#x2F;til&#x2F;blob&#x2F;master&#x2F;ruby&#x2F;comparing...</a><p>I really like the .contain_exactly() matcher for this purpose as well :)