Bogosort with ruby, test in Rspec