diff --git a/spec/support/responses.rb b/spec/support/responses.rb index f0c3ea2..1d4b005 100644 --- a/spec/support/responses.rb +++ b/spec/support/responses.rb @@ -1,7 +1,7 @@ class Responses class << self def mock_faraday(code, headers, body) - env = Faraday::Env.new(status: code, response_headers: headers, response_body: body) + env = Faraday::Env.from(status: code, response_headers: headers, response_body: body) Faraday::Response.new(env) end end