Class: Pact::MockService::Interactions::InteractionDiffMessage

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

Instance Method Summary collapse

Constructor Details

#initialize(previous_interaction, new_interaction) ⇒ InteractionDiffMessage

Returns a new instance of InteractionDiffMessage.



9
10
11
12
# File 'lib/pact/mock_service/interactions/interaction_diff_message.rb', line 9

def initialize previous_interaction, new_interaction
  @previous_interaction = previous_interaction
  @new_interaction = new_interaction
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/pact/mock_service/interactions/interaction_diff_message.rb', line 14

def to_s
  "An interaction with same description (#{new_interaction.description.inspect}) and provider state (#{new_interaction.provider_state.inspect}) but a different #{differences} has already been used. Please use a different description or provider state, or remove any random data in the interaction."
end