Sha256: d41f1b6e90c4fbd960396c0bb4e0f7aed339d34b9531b549e798b7267f286b91
Contents?: true
Size: 539 Bytes
Versions: 33
Compression:
Stored size: 539 Bytes
Contents
# encoding: utf-8 # Patch rspec to allow nested execution module Rspec # Run block in clean rspec environment # # @return [Object] # returns the value of block # # @api private # def self.nest original_world, original_configuration = ::RSpec.instance_variable_get(:@world), ::RSpec.instance_variable_get(:@configuration) ::RSpec.reset yield ensure ::RSpec.instance_variable_set(:@world, original_world) ::RSpec.instance_variable_set(:@configuration, original_configuration) end end
Version data entries
33 entries across 33 versions & 1 rubygems