Sha256: fbd0a321936530fc3753a8470f1ee4264072cd123c11d6d8439303254c74270b
Contents?: true
Size: 367 Bytes
Versions: 122
Compression:
Stored size: 367 Bytes
Contents
module Spree module TestingSupport module Kernel private def silence_stream(stream) old_stream = stream.dup stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null') stream.sync = true yield ensure stream.reopen(old_stream) old_stream.close end end end end
Version data entries
122 entries across 122 versions & 1 rubygems