Welcome to mirror list, hosted at ThFree Co, Russian Federation.

silence_stdout.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b2bc65c5cda84c30659a700ff85d73f298486024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

RSpec.configure do |config|
  # Allows stdout to be redirected to reduce noise
  config.before(:each, :silence_stdout) do
    $stdout = StringIO.new
  end

  config.after(:each, :silence_stdout) do
    $stdout = STDOUT
  end
end