Skip to content

Commit

Permalink
Revert "Silence stdout" since debug isn't convenience
Browse files Browse the repository at this point in the history
This reverts commit 66324a7.
  • Loading branch information
masutaka committed Aug 6, 2017
1 parent ea2b138 commit 7a75ef5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 7a75ef5

Please sign in to comment.