Sha256: 318298b28fc54861a786f3e50e4da75c3ab5444f3a230acebceb1d17c375fe47
Contents?: true
Size: 299 Bytes
Versions: 9
Compression:
Stored size: 299 Bytes
Contents
require 'rspec' require 'stringio' def capture_stdout capture = StringIO.new restore, $stdout = $stdout, capture yield $stdout = restore capture.string end def capture_stderr capture = StringIO.new restore, $stderr = $stderr, capture yield $stderr = restore capture.string end
Version data entries
9 entries across 9 versions & 2 rubygems