Sha256: b25f22c47142453fe50ab21bdb8a1a33f3ca8ad55640ef78a6ff0afef9daec06

Contents?: true

Size: 219 Bytes

Versions: 1

Compression:

Stored size: 219 Bytes

Contents

# encoding: utf-8
#
# Spec helpers related to standard streams
#
module StreamsHelper
  def silence_stderr
    stderr = $stderr
    $stderr = File.new('/dev/null', 'w')
    yield
  ensure
    $stderr = stderr
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mode-sdk-0.1.0 spec/support/streams_helper.rb