On Sun, Sep 11, 2011 at 16:35, 7stud -- wrote:
> Don't forget about that Enumerable link:
>
> u.matches.any? {|match| match.id == 2}.should be_false
Ah, THAT'S where that was hiding! Something in the back of my brain
was saying "any", but my Ruby-fu is a touch out of date so I didn't
dredge up
Don't forget about that Enumerable link:
u.matches.any? {|match| match.id == 2}.should be_false
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-
2 matches
Mail list logo