# File lib/faraday/adapter/test.rb, line 30 def match(request_method, path, body) return false if !@stack.key?(request_method) stack = @stack[request_method] consumed = (@consumed[request_method] ||= []) if stub = matches?(stack, path, body) consumed << stack.delete(stub) stub else matches?(consumed, path, body) end end