On Sun, May 3, 2009 at 1:34 PM, James Byrne <[email protected]> wrote:
> Aslak Hellesøy wrote:
> >> I use mkdir and touch.
> >>
> >
> > Me too
>
> Fine for those that know cucumber inside out. A bit sparse for the rest
> of creation.
>
You only need this to start:
+-features/
+-foo.feature
Then you can add some more when it gets yellow:
+-features/
+-step_definitions/
+-bar_steps.rb
And some more when you need hooks etc:
+-features/
+-step_definitions/
+-bar_steps.rb
+-support/
+-env.rb
You can also try one of these:
# http://newgem.rubyforge.org/
newgem -T rspec -i cucumber mygem
# http://github.com/technicalpickles/jeweler/tree/master
jeweler --cucumber --rspec mygem
Aslak
> What I ended up doing was copying an example directory tree from the
> cucumber gem and deleting most of it. It would be useful for non-Rails
> users of cucumber if cucumber itself had an option to copy a template
> directory tree from the gem into a project root. In other words:
>
> $ cd project_root
> $ tree
> .
> |-- bin
> |-- doc
> `-- lib
> $
> $ cucumber --initialize
> $ tree
> .
> |-- Rakefile
> |-- bin
> |-- doc
> |-- features
> | |-- sample.feature
> | |-- step_definitions
> | | `-- sample_steps.rb
> | `-- support
> | |-- env.rb
> | `-- tag_count_formatter.rb
> `-- lib
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users