Rspec: “array.should == another_array” but without concern for order October 4, 2022 by Tarik Try array.should =~ another_array The best documentation on this I can find is the code itself, which is here.