Skip to content

Keep state when a before(:all) hook raises an exception

Created by: penelopezone

Hi,

this is related to #558 (closed)

I've got the basic functionality working (as illustrated by the test spec in #558 (closed)).

I'm having trouble getting my spec working. I think @state in the spec provided in this pull request is in the inner scope of the group variable's describe block, and I'm having trouble working out how to get access to it. I've already tried patching a method onto the group instance to get the @state ivar, and the method supplied in the patch which is to use instance_variable_get.

What the spec actually needs to do is get into the @state in the describe block's scope, which I'm not sure how to do.

Merge request reports