The around hook passes an example to your block and you run it like
example.run so it should be hunky dory

On Friday, 9 August 2013, Andy Lindeman wrote:

> In spec/spec_helper.rb:
>
> > @@ -58,3 +58,15 @@ def reset(object)
> >    end
> >  end
> >
> > +
> > +shared_context "with isolated configuration" do
> > +  orig_configuration = nil
> > +  before do
> > +    orig_configuration = RSpec::Mocks.configuration
> > +    RSpec::Mocks.instance_variable_set(:@configuration, RSpec::Mocks::Configuration.new)
> > +  end
> > +
> > +  after do
> > +    RSpec::Mocks.instance_variable_set(:@configuration, orig_configuration)
> > +  end
> > +end
>
> I use around hooks so rarely that I just assumed the exception would
> bubble up from the yield. If that's not the case, I favor around too.
> Sorry for replying with misinformation.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rspec/rspec-mocks/pull/383/files#r5673352>
> .
>