summaryrefslogtreecommitdiff
path: root/spec/generator_helper.rb
blob: d35eaac45bdd9e7e16a55b1cc39e303be15f7a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.configure do |config|
  # Redirect stdout so specs don't have so much noise
  config.before(:all) do
    $stdout = StringIO.new
  end

  # Reset stdout
  config.after(:all) do
    $stdout = STDOUT
  end
end