[rspec-users] exemplary way to show a list is sorted?

Pat Maddox pergesu at gmail.com
Tue Feb 10 17:21:31 EST 2009

On Tue, Feb 10, 2009 at 12:19 PM, David Chelimsky <dchelimsky at gmail.com> wrote:
> Right. I've done stuff like this before:
> [b,d,a,c].sort_with_special_method.should == [a,b,c,d]
> Any other patterns out there?

That's how I do it.


More information about the rspec-users mailing list