[rspec-users] Example on the Cucumber home page

aslak hellesoy aslak.hellesoy at gmail.com
Wed Jan 14 10:02:25 EST 2009

On Wed, Jan 14, 2009 at 3:57 PM, Nick Hoffman <nick at deadorange.com> wrote:

> Great work on the logo and website, Aslak & Co! It looks great, and and the
> prominent six steps to using Cucumber is exactly what newbs.
> I have one question about step #2. The Given-block initialises a new
> Calculator each time it's run. This would cause the
>  "Given I have entered 50 into the calculator"
> and
>  "And I have entered 70 into the calculator"
> steps to have different Calculator objects, right?
> If that's intentional, is it because step #6 tells you to repeat step #s
> 2-5, which will cause you to refactor the Given-block in step #2, resulting
> in a single, shared Calculator object?

Spot on. Look at the examples for how it will end up.


> Thanks for the clarification!
> Nick
> _______________________________________________
> 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/20090114/0cc61b88/attachment.html>

More information about the rspec-users mailing list