method

silence_stream

silence_stream(stream)
private

No documentation available.

# File activesupport/lib/active_support/testing/stream.rb, line 6
      def silence_stream(stream)
        old_stream = stream.dup
        stream.reopen(IO::NULL)
        stream.sync = true
        yield
      ensure
        stream.reopen(old_stream)
        old_stream.close
      end