Sha256: 818f4fa28051d96e0030716e4fdfab577416c3421db1fbce7499400a373b4019
Contents?: true
Size: 521 Bytes
Versions: 18
Compression:
Stored size: 521 Bytes
Contents
# 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
18 entries across 18 versions & 1 rubygems