rspec/rspec-core — pull request #689 by samphippen (2012-09-26 00:02:20+00:00)
Title: Keep state when a before(:all) hook raises an exception

Hi,

this is related to #558

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

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.