Class: Pact::MockService::Interactions::ExpectedInteractions

Inherits:
Array
  • Object
show all
Defined in:
lib/pact/mock_service/interactions/expected_interactions.rb

Instance Method Summary collapse

Instance Method Details

#find_candidate_interactions(actual_request) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/pact/mock_service/interactions/expected_interactions.rb', line 8

def find_candidate_interactions actual_request
  Pact::MockService::Interactions::CandidateInteractions.new(
    select do | interaction |
      interaction.request.matches_route? actual_request
    end
  )
end