Class: Pact::MockService::RequestHandlers::VerificationGet::FailureMessage
- Inherits:
-
Object
- Object
- Pact::MockService::RequestHandlers::VerificationGet::FailureMessage
- Defined in:
- lib/pact/mock_service/request_handlers/verification_get.rb
Instance Method Summary collapse
-
#initialize(verification) ⇒ FailureMessage
constructor
A new instance of FailureMessage.
- #to_s ⇒ Object
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_s ⇒ Object
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 |