Skip to content

Commit

Permalink
Stub an "effective_url" attribute of Typhoeus::Response
Browse files Browse the repository at this point in the history
  • Loading branch information
cmrd-senya committed Nov 2, 2015
1 parent caa219f commit bfc8206
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def self.generate_typhoeus_response(request_signature, webmock_response)
:code => webmock_response.status[0],
:status_message => webmock_response.status[1],
:body => webmock_response.body,
:headers => webmock_response.headers
:headers => webmock_response.headers,
:effective_url => request_signature.uri
)
end
response.mock = :webmock
Expand Down

0 comments on commit bfc8206

Please sign in to comment.