Class: Pact::Consumer::DistinctInteractionsFilter
- Inherits:
-
InteractionsFilter
- Object
- InteractionsFilter
- Pact::Consumer::DistinctInteractionsFilter
- Defined in:
- lib/pact/consumer/interactions_filter.rb
Instance Method Summary collapse
Methods inherited from InteractionsFilter
Constructor Details
This class inherits a constructor from Pact::Consumer::InteractionsFilter
Instance Method Details
#<<(interaction) ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/pact/consumer/interactions_filter.rb', line 29 def << interaction if (ndx = index_of(interaction)) if @interactions[ndx] != interaction raise "Interaction with same description (#{interaction.description}) and provider state (#{interaction.provider_state}) already exists" end else @interactions << interaction end end |