Sha256: e5d26acc35116563c80e753f1f8968e5ff77efd363ccf739e62c3e25e27b86e5

Contents?: true

Size: 261 Bytes

Versions: 8

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

if ENV["SUPPRESS_STDERR"] == "enabled"
  RSpec.configure do |config|
    stderr_original = $stderr
    config.before(:suite) { $stderr = File.new "/dev/null", "w" }
    config.after(:suite) { $stderr = stderr_original }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gemsmith-7.7.0 lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt
gemsmith-7.6.0 lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt
gemsmith-7.5.0 lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt
gemsmith-7.4.0 lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt
gemsmith-7.3.0 lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt
gemsmith-7.2.0 lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt
gemsmith-7.1.0 lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt
gemsmith-7.0.0 lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt