[rspec-users] Sample App - TDD with Cucumber and RSpec

Ashley Moran ashley.moran at patchspace.co.uk
Wed Dec 3 05:35:12 EST 2008

On 2 Dec 2008, at 19:25, Pat Maddox wrote:

> Given ...
>  Postie.count.should == 0
> end
> It's just an assertion (in the C sense of the word, not testing).  You
> should be starting off with a clean slate anyway...but having a couple
> assertions before you run can be very helpful for localization.  Plus
> this step can obviously be reused as a When.

Nice idea!  That kind of sanity checking can't hurt.



More information about the rspec-users mailing list