Skip to content

Commit

Permalink
feat: support webdav http methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 10, 2020
1 parent bac99da commit fa1d712
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/pact/provider/test_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ def replay_interaction interaction, request_customizer = nil

logger.info "Sending #{request.method.upcase} request to path: \"#{request.path}\" with headers: #{request.headers}, see debug logs for body"
logger.debug "body :#{request.body}"
response = self.send(request.method.downcase, *args)
response = if self.respond_to?(:custom_request)
self.custom_request(request.method.upcase, *args)
else
self.send(request.method.downcase, *args)
end
logger.info "Received response with status: #{response.status}, headers: #{response.headers}, see debug logs for body"
logger.debug "body: #{response.body}"
end
Expand Down

0 comments on commit fa1d712

Please sign in to comment.