[rspec-users] Can I do foo.should (be_nil || be_empty) in rspec

Ashley Moran ashley.moran at patchspace.co.uk
Tue Nov 4 06:51:27 EST 2008

On 4 Nov 2008, at 11:26, Andrew Premdas wrote:

> Any ideas about the general case, is making a custom matcher the  
> (only) way to go?

Can you give an example of what you're doing, or think you might do?   
Until I saw Tom's reply it never occurred to me that you might be  
dealing with strings (I thought you were doing something with an array  
or other collection.)



More information about the rspec-users mailing list