Class: Pact::MockService::Interactions::VerifiedInteractions
- Inherits:
-
Array
- Object
- Array
- Pact::MockService::Interactions::VerifiedInteractions
- Defined in:
- lib/pact/mock_service/interactions/verified_interactions.rb
Instance Method Summary collapse
Instance Method Details
#<<(interaction) ⇒ Object
6 7 8 9 10 |
# File 'lib/pact/mock_service/interactions/verified_interactions.rb', line 6 def << interaction unless find_matching_description_and_provider_state interaction super end end |
#find_matching_description_and_provider_state(interaction) ⇒ Object
12 13 14 15 16 |
# File 'lib/pact/mock_service/interactions/verified_interactions.rb', line 12 def find_matching_description_and_provider_state interaction find do |candidate_interaction| candidate_interaction.matches_criteria?(description: interaction.description, provider_state: interaction.provider_state) end end |