[rspec-users] Disabling cucumber for autotest

Rick DeNatale rick.denatale at gmail.com
Thu May 28 14:47:03 EDT 2009

On Thu, May 28, 2009 at 1:31 PM, Ben Lovell <benjamin.lovell at gmail.com> wrote:
> On Thu, May 28, 2009 at 6:05 PM, Rick DeNatale <rick.denatale at gmail.com>
> wrote:
>> Now you don't happen to be using the recently released autotest-mac
>> gem are you? It does automatically run scenarios, and I'd like to be
>> able to control that as well.
>> Rick DeNatale

It seems to always try to run Cucumber scenarios but only after specs
have passed.

Looking at the code in the gem it seems to control whether or not to
run scenarios under control of an instance variable named surprisingly
enough @run_scenarios

It initializes this to false with it first installs the :run_command
hook, but then in the :ran_command hook it sets it to true as soon as
the specs run with no failures

Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

More information about the rspec-users mailing list