spec/helpers.rb in http2-0.0.32 vs spec/helpers.rb in http2-0.0.33
- old
+ new
@@ -15,15 +15,13 @@
end
def with_http(args = {})
with_webserver do |hayabusa|
Http2.new({host: "localhost", port: hayabusa.port, encoding_gzip: false}.merge(args)) do |http|
- begin
- yield http
- rescue Http2::Errors::Internalserver => e
- puts "Body of error-response: #{e.response.body}"
- raise e
- end
+ yield http
end
+ rescue Http2::Errors::Internalserver => e
+ puts "Body of error-response: #{e.response.body}"
+ raise e
end
end
end