module RSpec::Matchers::BuiltIn::CaptureStdout
def self.capture(block)
def self.capture(block) captured_stream = StringIO.new original_stream = $stdout $stdout = captured_stream block.call captured_stream.string ensure $stdout = original_stream end
def self.name
def self.name 'stdout' end