On Tue, Feb 23, 2010 at 4:43 PM, Pat Maddox <[email protected]> wrote:
<snip>
>
> there is also the set equality matcher, which checks that the contents of two 
> collections are equal irrespective of order:
>
> voters.should =~ [bob, sally]
>

I can't believe I didn't know =~ could be used for comparing
collections regardless of order, this is awesome!

Thanks,
Michael Guterl
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to