Displaying 1 result from an estimated 1 matches for "be_able_to_cook".
2007 Oct 04
7
Using Predicates to look at an array..
Hi all,
I have an array of shipping_type''s being returned, and I want to see  
what is in there.  In the past I have done:
     shipping_type.include?(Cart::SHIPPING_TYPE_REGULAR).should be_true
This works, but looks really ugly..  It just doesn''t roll of the  
tongue very well.  I then looked up the use of Predicates, which I  
had been using, but hadn''t realized: