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

Ashley Moran
2008-11-04T11:51:27Z

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.)

Ashley

--