From 7a75ef5d1b157c82dd83be2cdada0adad04ec744 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Mon, 7 Aug 2017 01:02:37 +0900 Subject: [PATCH] Revert "Silence stdout" since debug isn't convenience This reverts commit 66324a71bd9103a09242874ceabe471646c08e75. --- spec/spec_helper.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 627992e..9d8631a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -22,9 +22,6 @@ RSpec.configure do |config| config.include LoadFixtureHelper - config.before(:all) { silence_stdout } - config.after(:all){ enable_stdout } - # rspec-expectations config goes here. You can use an alternate # assertion/expectation library such as wrong or the stdlib/minitest # assertions if you prefer. @@ -109,15 +106,3 @@ Kernel.srand config.seed =end end - -# Redirects stdout to /dev/null. -def silence_stdout - @orig_stdout = $stdout - $stdout = File.new('/dev/null', 'w') -end - -# Replace stdout so anything else is output correctly. -def enable_stdout - $stdout = @orig_stdout - @orig_stdout = nil -end