Commit 217ec5fd authored by James Fargher's avatar James Fargher

Add rspec filter :silence_stdout

This filter allows redirecting $stdout to prevent too much noise in
specs.
parent dda51887
......@@ -403,6 +403,15 @@ RSpec.configure do |config|
end
end
# 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
config.disable_monkey_patching!
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment