Sha256: d0cfcc9cd65bb80d3f6784e3a6f5b7f767297e503281535398a6f8c6e31b8218

Contents?: true

Size: 231 Bytes

Versions: 5365

Compression:

Stored size: 231 Bytes

Contents

module RSpec
  module Support
    module WithIsolatedStdErr
      def with_isolated_stderr
        original = $stderr
        $stderr = StringIO.new
        yield
      ensure
        $stderr = original
      end
    end
  end
end

Version data entries

5,365 entries across 5,275 versions & 126 rubygems

Version Path
cybrid_api_organization_ruby-0.113.93 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_id_ruby-0.113.93 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_bank_ruby-0.113.91 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_id_ruby-0.113.91 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_organization_ruby-0.113.91 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_bank_ruby-0.113.90 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_id_ruby-0.113.90 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_organization_ruby-0.113.90 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_bank_ruby-0.113.89 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_id_ruby-0.113.89 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_organization_ruby-0.113.89 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_id_ruby-0.113.88 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_bank_ruby-0.113.88 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_organization_ruby-0.113.88 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_bank_ruby-0.113.86 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_id_ruby-0.113.86 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_organization_ruby-0.113.86 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_id_ruby-0.113.85 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_bank_ruby-0.113.85 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb
cybrid_api_organization_ruby-0.113.85 vendor/bundle/ruby/3.2.0/gems/rspec-support-3.12.1/lib/rspec/support/spec/with_isolated_stderr.rb