Sha256: 76ff83503a9f4abc7fb90aee7aaee26491f9de2598a163c7e9bc36b90503ca74
Contents?: true
Size: 358 Bytes
Versions: 8
Compression:
Stored size: 358 Bytes
Contents
module CaptureOutput def capture_stderr previous, $stderr = $stderr, StringIO.new yield $stderr.string ensure $stderr = previous end def capture_stdout previous, $stdout = $stdout, StringIO.new yield $stdout.string ensure $stdout = previous end end RSpec.configure do |config| config.include CaptureOutput end
Version data entries
8 entries across 8 versions & 2 rubygems