Skip to content

Commit

Permalink
Merge pull request #896 from ce07c3/master
Browse files Browse the repository at this point in the history
Adjust `perform` override and call HTTP features wrapping request/res…
  • Loading branch information
bblimke authored Dec 17, 2020
2 parents f61d51a + f730b4f commit f0824dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/webmock/http_lib_adapters/http_rb/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ class Client

def perform(request, options)
return __perform__(request, options) unless webmock_enabled?
WebMockPerform.new(request) { __perform__(request, options) }.exec

response = WebMockPerform.new(request) { __perform__(request, options) }.exec
options.features.each { |_name, feature| response = feature.wrap_response(response) }
response
end

def webmock_enabled?
Expand Down

0 comments on commit f0824dd

Please sign in to comment.