Files
gitlab-foss/gems/gitlab-backup-cli/spec/support/silence_output.rb
2024-04-13 09:10:43 +00:00

15 lines
308 B
Ruby

# frozen_string_literal: true
RSpec.configure do |config|
# Allows stdout to be redirected to reduce noise
config.before(:each, :silence_output) do
$stdout = StringIO.new
$stderr = StringIO.new
end
config.after(:each, :silence_output) do
$stdout = STDOUT
$stderr = STDERR
end
end