[rspec-users] Someone please name this matcher for me
Cohen, Joseph
JDCOHEN at stoel.com
Thu Aug 7 13:40:46 EDT 2008
Lots of good, interesting suggestions.
If you don't mind its length, for the non-mathematically inclined
something like
has_same_members_as
may be easier to remember and corresponds to Ruby's member? predicate.
-----Original Message-----
From: rspec-users-bounces at rubyforge.org
[mailto:rspec-users-bounces at rubyforge.org] On Behalf Of Kyle Hargraves
Sent: Thursday, August 07, 2008 8:17 AM
To: rspec-users
Subject: Re: [rspec-users] Someone please name this matcher for me
On Wed, Aug 6, 2008 at 1:25 PM, Cohen, Joseph <JDCOHEN at stoel.com> wrote:
>
> Consider:
> should_have_the_same_members_as
Similarly, I have a have_same_elements_as(arr) matcher.
k
_______________________________________________
rspec-users mailing list
rspec-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users
mailing list