Skip to content

Commit

Permalink
use from initializer for faraday env since they provide it.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeIGS committed Jan 8, 2024
1 parent 15d7f07 commit 410f05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/responses.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 410f05f

Please sign in to comment.