Class: Pact::MockService::RequestHandlers::VerificationGet::FailureMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/mock_service/request_handlers/verification_get.rb

Instance Method Summary collapse

Constructor Details

#initialize(verification) ⇒ FailureMessage

Returns a new instance of FailureMessage.



48
49
50
# File 'lib/pact/mock_service/request_handlers/verification_get.rb', line 48

def initialize verification
  @verification = verification
end

Instance Method Details

#to_sObject



52
53
54
55
56
57
# File 'lib/pact/mock_service/request_handlers/verification_get.rb', line 52

def to_s
  titles_and_summaries.collect do | title, summaries |
    "#{title}:\n\t#{summaries.join("\n\t")}\n\n" if summaries.any?
  end.compact.join + verification.interaction_mismatches.collect(&:to_s).join("\n\n") + "\n"

end