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

Tom Stuart tom at experthuman.com
Tue Nov 4 06:19:47 EST 2008


On 4 Nov 2008, at 11:10, Andrew Premdas wrote:
> Is there any way to do
>   foo.should (be_nil || be_empty)
> in rspec.

"foo.should be_blank" would work if you're using Rails (i.e.  
ActiveSupport is loaded).

Cheers,
-Tom


More information about the rspec-users mailing list