Posted about 1 month ago. Visible to the public. Repeats.

Spreewald development steps

Our gem spreewald Archive supports a few helpers for development. In case you notice errors in your Cucumber tests, you might want to use one of them to better understand the underlying background of the failure. The following content is also part of the spreewald's README Archive , but is duplicated to this card to allow repeating.

Then console

Pauses test execution and opens an IRB shell with current context. Does not halt the application-
under-test.

Example:

Copy
Given there is a user with the name "Hans Peter" And I am signed in as the user above When I go to the dashboard And console Then I should see "Hans Peter"

AfterStep @slow-motion

Waits 2 seconds after each step

Example:

Copy
@slow-motion Given there is a user with the name "Hans Peter" And I am signed in as the user above When I go to the dashboard Then I should see "Hans Peter"

AfterStep @single-step

Waits for a keypress after each step

Example:

Copy
@single-step Given there is a user with the name "Hans Peter" And I am signed in as the user above When I go to the dashboard Then I should see "Hans Peter"
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Emanuel De
Last edit:
about 1 month ago
by Emanuel De
Keywords:
debug, debugging
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Emanuel De to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more