Re: [turnip] Digest for ruby-turnip@googlegroups.com - 1 update in 1 topic

9 views
Skip to first unread message

Lukas Oberhuber

unread,
Mar 12, 2016, 6:06:35 AM3/12/16
to ruby-...@googlegroups.com
I think you might have to use rutabaga (https://github.com/simplybusiness/rutabaga), which is an extension of Turnip to do this. It basically allows you to call your feature from within an RSpec example so you can use all rspec features. However it may be overkill for you. Full disclosure: I created rutabaga.

On 11 March 2016 at 21:21, <ruby-...@googlegroups.com> wrote:
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.

Reply all
Reply to author
Forward
0 new messages