Sha256: c7192224ede8b980ef4098d0d038f857d99818ca6debbf20799154b70f6c27e6
Contents?: true
Size: 601 Bytes
Versions: 28
Compression:
Stored size: 601 Bytes
Contents
module Webrat module Selenium module SilenceStream # active_support already defines silence_stream, no need to do that again if it's already present. # http://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/kernel/reporting.rb unless Kernel.respond_to?(:silence_stream) def silence_stream(stream) old_stream = stream.dup stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null') stream.sync = true yield ensure stream.reopen(old_stream) end end end end end
Version data entries
28 entries across 28 versions & 14 rubygems