enforce the nneed for the response body class to be a subclass of the response body

This commit is contained in:
HoneyryderChuck 2020-10-15 16:01:37 +01:00
parent ec8d400081
commit f8877df2e1

View File

@ -34,7 +34,7 @@ module Requests
def test_http_response_buffer_to_custom
uri = build_uri("/")
custom_body = Class.new do
custom_body = Class.new(HTTPX::Response::Body) do
attr_reader :file
def initialize(_response, **)