In this recipe, will cover various kinds of tips for writing good, maintainable, and DRY Cucumber steps.
We will reuse the Rails application
cucumber_bdd_how_to that we've created in the Writing your first Hello World feature (Simple) recipe, so please
cd into that directory to get prepared.
In the following sections, a number of useful step tips will be introduced and covered exhaustively.
When the user has 1 gift ... When the user has 5 gifts ...