[rspec-users] newbie cucumber tutorial

aslak hellesoy aslak.hellesoy at gmail.com
Tue Dec 23 18:39:58 EST 2008


On Wed, Dec 24, 2008 at 12:10 AM, Tim Walker <walketim at gmail.com> wrote:

> Very nice indeed...
>
>
> In your blog you said:
>
> "Note that one of the steps is already defined in webrat. Isn't that
> cool? As you get the hang of this, you reuse certain word patterns
> which map to specific tests. But we're getting ahead of ourselves. We
> need to dive into the creation of "steps" which make up our executable
> spec. Cucumber gives a some handy snippets to get us started (in the
> output of "rake features" above). We'll paste these into a new file
> that we'll create in the "features/step_definitions" directory"
>
> Why did one of the steps already get defined in webrat? Does it parse
> "see" as indicative of UI? or what...?
>

I try to only use magic when reality doesn't work ;-)
When you run "script/generate cucumber" you get a webrat_steps.rb file that
contains these common steps.

Aslak


>
> Thanks very much.
>
> Tim
>
>
>
> On Mon, Dec 22, 2008 at 2:01 AM, Sarah Allen <lists at ruby-forum.com> wrote:
> > I got started with cucumber and it sure is fun.  I've written up my
> > initial experience in tutorial format here for any newbies who want to
> > follow in my tracks:
> > http://www.ultrasaurus.com/code/2008/12/rails-2-day-3.html
> >
> > If anyone has any corrections, let me know.  I was wondering whether
> > when writing a real application, do you usually write your whole spec
> > with lots of scenarios at once and then get them the execute one at a
> > time? or do you write and code one scenario at a time?
> >
> > Thanks,
> > Sarah
> >
> > p.s. what is the relationship between cucumber and RSpec?
> > --
> > Posted via http://www.ruby-forum.com/.
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081224/09d5dff1/attachment.html>


More information about the rspec-users mailing list