spec/support/capture_warning.rb in http-2.2.2 vs spec/support/capture_warning.rb in http-3.0.0.pre

- old
+ new

@@ -1,5 +1,6 @@ # frozen_string_literal: true + def capture_warning old_stderr = $stderr $stderr = StringIO.new yield $stderr.string