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

Andrew Premdas
2008-11-04T16:57:10Z

Oh I was definitely into theoretical speculation here :) - haven''t got
a
particular case at the moment

2008/11/4 Zach Dennis <zach.dennis at gmail.com>

> On Tue, Nov 4, 2008 at 11:36 AM, Andrew Premdas <apremdas at
gmail.com>
> wrote:
> > Ok I see. I was approaching this more from the syntax that my stories
can
> > express rather than what my code does. However from these replies and
a
> > re-read of the cucumber wiki I can see that any step that requires the
> > (foo||bar) construct is by definition a conjunction and can be broken
> into
> > smaller steps.
> > However we only have ''And'' available in stories, do
we need ''Or''?
>
> What is your scenario that you are thinking of using an "or" ?
This
> may be helpful, otherwise we''re going to speculating about the
> theoretical use cases. I''d rather focus on your specific use case.
:)
>
> --
> Zach Dennis
> http://www.continuousthinking.com
> http://www.mutuallyhuman.com
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/rspec-users/attachments/20081104/756d71c7/attachment.html>