- Where to put RSpec After block - 1 Update
Andrew P <theamp...@gmail.com>: Mar 11 08:33AM -0800
So I'd like to have a global step that, when used as part of a Background
block, will reset the state of the system under test after each scenario
has finished. I thought to add an RSpec after block to the step, but this
fails because:
`after` is not available from within an example (e.g. an `it` block) or
> from constructs that run in the scope of an example (e.g. `before`, `let`,
> etc). It is only available on an example group (e.g. a `describe` or
> `context` block).
Is there a proper way to do this within Turnip? I like the readability of
using steps to define this, and would like to avoid having to tag every
scenario.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to ruby-turnip...@googlegroups.com.