spec/spec_helper.rb
# Redirects stderr and stout to /dev/null.txt
Redirects stderr and stout to /dev/null.txt
Redirects stderr and stout to / dev / null . txt
def silence_output
  @original_stderr = $stderr
  @original_stdout = $stdout
  $stderr = File.open(File.join('', 'dev', 'null'), 'w')
  $stdout = File.open(File.join('', 'dev', 'null'), 'w')
end
def silence_output @original_stderr = $stderr @original_stdout = $stdout $stderr = File . open ( File . join ( '' , 'dev' , 'null' ) , 'w' ) $stdout = File . open ( File . join ( '' , 'dev' , 'null' ) , 'w' ) end
Redirects stderr and stout to /dev/null.txt
Redirects stderr and stout to / dev / null . txt
# Store the original stderr and stdout in order to restore them later # Redirect stderr and stdout