lib/faraday/adapter/test.rb
# Raises an error if any of the stubbed calls have not been made.
Raises an error if any of the stubbed calls have not been made.
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
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
Raises an error if any of the stubbed calls have not been made.
Raises an error if any of the stubbed calls have not been made .