Sha256: fbd0a321936530fc3753a8470f1ee4264072cd123c11d6d8439303254c74270b

Contents?: true

Size: 367 Bytes

Versions: 122

Compression:

Stored size: 367 Bytes

Contents

module Spree
  module TestingSupport
    module Kernel
      private

      def silence_stream(stream)
        old_stream = stream.dup
        stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
        stream.sync = true
        yield
      ensure
        stream.reopen(old_stream)
        old_stream.close
      end
    end
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
spree_core-4.10.1 lib/spree/testing_support/kernel.rb
spree_core-4.10.0 lib/spree/testing_support/kernel.rb
spree_core-4.9.0 lib/spree/testing_support/kernel.rb
spree_core-4.8.3 lib/spree/testing_support/kernel.rb
spree_core-4.8.2 lib/spree/testing_support/kernel.rb
spree_core-4.7.3 lib/spree/testing_support/kernel.rb
spree_core-4.6.6 lib/spree/testing_support/kernel.rb
spree_core-4.5.5 lib/spree/testing_support/kernel.rb
spree_core-4.0.9 lib/spree/testing_support/kernel.rb
spree_core-4.1.15 lib/spree/testing_support/kernel.rb
spree_core-4.2.7 lib/spree/testing_support/kernel.rb
spree_core-4.3.3 lib/spree/testing_support/kernel.rb
spree_core-4.4.1 lib/spree/testing_support/kernel.rb
spree_core-4.5.4 lib/spree/testing_support/kernel.rb
spree_core-4.6.5 lib/spree/testing_support/kernel.rb
spree_core-4.7.2 lib/spree/testing_support/kernel.rb
spree_core-4.7.1 lib/spree/testing_support/kernel.rb
spree_core-4.6.4 lib/spree/testing_support/kernel.rb
spree_core-4.7.0 lib/spree/testing_support/kernel.rb
spree_core-4.6.3 lib/spree/testing_support/kernel.rb