mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
15 lines
308 B
Ruby
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
|