class RSpec::Core::Configuration

def output_to_tty?

def output_to_tty?
  begin
    output_stream.tty? || tty?
  rescue NoMethodError
    false
  end
end