# File lib/vcr/http_stubbing_adapters/typhoeus.rb, line 24 def stub_requests(http_interactions, match_attributes) grouped_responses(http_interactions, match_attributes).each do |request_matcher, responses| ::Typhoeus::Hydra.stub( request_matcher.method || :any, request_matcher.uri, request_hash(request_matcher) ).and_return( responses.map do |response| ::Typhoeus::Response.new( :code => response.status.code, :body => response.body, :headers_hash => normalized_response_headers(response) ) end ) end end