Sha256: 7301e9391b058766a762ec99955fc909bbbd043170ebfe30f8eb4e82d57edf2e

Contents?: true

Size: 205 Bytes

Versions: 10

Compression:

Stored size: 205 Bytes

Contents

require 'stringio'

module OutputHelper
  def capture_stderr
    old_out, new_out = $stderr, StringIO.new
    $stderr = new_out
    yield
  ensure
    $stderr = old_out
    return new_out.string
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
git_tracker-2.0.0 spec/support/output_helper.rb
git_breeze-1.1.8 spec/support/output_helper.rb
git_breeze-1.1.7 spec/support/output_helper.rb
git_breeze-1.0.12 spec/support/output_helper.rb
git_breeze-1.0.0 spec/support/output_helper.rb
git_breeze-0.1.2 spec/support/output_helper.rb
git_breeze-0.1.1 spec/support/output_helper.rb
git_breeze-0.1.0 spec/support/output_helper.rb
git_tracker-1.6.3 spec/support/output_helper.rb
git_tracker-1.6.2 spec/support/output_helper.rb