module RSpec::Core::Sandbox

def self.sandboxed

```
end
config.before(:context) { RSpec.current_example = nil }
Sandbox.sandboxed do |config|
```

Use this to set custom configs for your sandboxed examples.
When calling this the configuration is passed into the provided block.

world) reset. This is used to test RSpec with RSpec.
Execute a provided block with RSpec global objects (configuration,
def self.sandboxed
  orig_config  = RSpec.configuration
  orig_world   = RSpec.world
  orig_example = RSpec.current_example
  RSpec.configuration = RSpec::Core::Configuration.new
  RSpec.world         = RSpec::Core::World.new(RSpec.configuration)
  yield RSpec.configuration
ensure
  RSpec.configuration   = orig_config
  RSpec.world           = orig_world
  RSpec.current_example = orig_example
end