Skip to content

Commit bfc8206

Browse files
author
cmrd Senya
committed
Stub an "effective_url" attribute of Typhoeus::Response
1 parent caa219f commit bfc8206

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def self.generate_typhoeus_response(request_signature, webmock_response)
9797
:code => webmock_response.status[0],
9898
:status_message => webmock_response.status[1],
9999
:body => webmock_response.body,
100-
:headers => webmock_response.headers
100+
:headers => webmock_response.headers,
101+
:effective_url => request_signature.uri
101102
)
102103
end
103104
response.mock = :webmock

0 commit comments

Comments
 (0)