From bfc8206a8c728c5f93dca7ee13a83f4e7ebc79e3 Mon Sep 17 00:00:00 2001 From: cmrd Senya Date: Mon, 2 Nov 2015 11:50:40 +0300 Subject: [PATCH] Stub an "effective_url" attribute of Typhoeus::Response --- lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb b/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb index bc36271ed..3a8ba07bb 100644 --- a/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb +++ b/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb @@ -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