From the documentation :
ruby script/generate cucumber
If you are running an OS that supports fork (read :! Windows), we recommend using Spork and -drb, as this allows you to run cucumbers faster:
ruby script/generate cucumber --spork
For more information on the generator, you can simply ask for help:
ruby script/generate cucumber --help
ruby script/generate feature Frooble name:string color:string description:text
This will create a simple plain text function with appropriate steps. Do not get carried away with this generator - you better write them manually in the long run.
source
share