Sha256: b803db73461e6cf20dd49d31e35d658702f97b141ddae063b2759d08f3f20721
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true module RSpec module DescriptionConsistency module ResourceManager module_function def release_io(io) return unless io return if [$stdout, $stderr].include?(io) return if io.closed? return if io.is_a?(StringIO) || (defined?(RSpec::Core::OutputWrapper) && io.is_a?(RSpec::Core::OutputWrapper)) io.close end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-description_consistency-1.1.0 | lib/rspec/description_consistency/resource_manager.rb |