class Typhoeus::Expectation

def find_by(request)

Other tags:
    Api: - private

Returns:
  • (Expectation) - The matching expectation.

Other tags:
    Example: Find expectation. -
def find_by(request)
  all.find do |expectation|
    expectation.matches?(request)
  end
end