Sha256: 9be3c6aa9053b6800e04816a0848423b6e2b20a2b4283e99dd8786b7a35b5d64

Contents?: true

Size: 127 Bytes

Versions: 49

Compression:

Stored size: 127 Bytes

Contents

def capture_warning
  old_stderr = $stderr
  $stderr = StringIO.new
  yield
  $stderr.string
ensure
  $stderr = old_stderr
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
http-2.0.1 spec/support/capture_warning.rb
http-2.0.0 spec/support/capture_warning.rb
http-2.0.0.pre spec/support/capture_warning.rb
http-1.0.4 spec/support/capture_warning.rb
http-0.9.9 spec/support/capture_warning.rb
http-1.0.3 spec/support/capture_warning.rb
http-1.0.2 spec/support/capture_warning.rb
http-1.0.1 spec/support/capture_warning.rb
http-1.0.0 spec/support/capture_warning.rb
http-1.0.0.pre6 spec/support/capture_warning.rb
http-1.0.0.pre5 spec/support/capture_warning.rb
http-1.0.0.pre4 spec/support/capture_warning.rb
http-1.0.0.pre3 spec/support/capture_warning.rb
http-1.0.0.pre2 spec/support/capture_warning.rb
http-1.0.0.pre1 spec/support/capture_warning.rb
http-0.9.8 spec/support/capture_warning.rb
http-0.9.7 spec/support/capture_warning.rb
http-0.9.6 spec/support/capture_warning.rb
http-0.9.5 spec/support/capture_warning.rb
http-0.9.4 spec/support/capture_warning.rb