On Wed, Feb 25, 2009 at 11:52 AM, aidy lewis <aidy.le...@googlemail.com> wrote: > Hi, > > When we create step defintions. For example: > > When /^that data is loaded$/ do > > end > > The above is seen in the Cucucmber run as implemented. > > Is it possible to put something within this method to enforce a skip flag? >
I'm not sure I understand what you mean. You want to skip running certain step definitions if a certain condition is true? When /^that data is loaded$/ do unless ENV['MAGIC'] # load the data end end $ MAGIC=true cucumber ... Aslak > Aidy > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > -- Aslak (::) _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users