class Faraday::Adapter::Test::Stubs

def verify_stubbed_calls

Raises an error if any of the stubbed calls have not been made.
def verify_stubbed_calls
  failed_stubs = []
  @stack.each do |method, stubs|
    next if stubs.empty?
    failed_stubs.concat(
      stubs.map do |stub|
        "Expected #{method} #{stub}."
      end
    )
  end
  raise failed_stubs.join(' ') unless failed_stubs.empty?
end