test/test_helper.rb in download_tv-2.2.0 vs test/test_helper.rb in download_tv-2.2.1
- old
+ new
@@ -9,10 +9,12 @@
File.open(in_path, "wb") { |f| Marshal.dump(config, f) }
end
def run_silently
previous_stdout, $stdout = $stdout, StringIO.new
+ previous_stderr, $stderr = $stderr, StringIO.new
yield
$stdout.string
ensure
$stdout = previous_stdout
+ $stderr = previous_stderr
end
\ No newline at end of file