[rspec-users] Features and conditions for those to be executed

Luis Lavena luislavena at gmail.com
Mon Nov 24 11:02:19 EST 2008

On Mon, Nov 24, 2008 at 1:47 PM, Andrew Premdas <apremdas at gmail.com> wrote:
> Assuming you're writing a feature for a black box that works under
> linux, osx but not under windows. Can you not write a features like
> Given I'm on windows
> When I run black box
> I should get an error ...
> Given I'm on OSX
> When I run black box
> I should not get an error ...
> Just an idea, HTH

Yeah, your idea looks good.

Wonder if this should be defined as a pending step or it should
generate an skipped one?
Luis Lavena
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams

More information about the rspec-users mailing list