module RSpec::Mocks

def self.with_temporary_scope

Returns:
  • (Object) - the return value from the block
def self.with_temporary_scope
  setup
  begin
    result = yield
    verify
    result
  ensure
    teardown
  end
end