search for: each_should_satisfy

Displaying 1 result from an estimated 1 matches for "each_should_satisfy".

2007 Feb 13
3
"should.be_in [values]" and "each_should_satisfy"
...tter way of writing the following assertion? [value1,value2].should_include actual Is there a more elegant way of performing should_satisfy on a collection, for example I currently use something like collection.each {|x| x.should_satisfy {|x| ... } } which is very ugly. Is there something like each_should_satisfy? Thanks, Esad