Exception: Suture::Error::VerificationFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/suture/error/verification_failed.rb

Instance Method Summary collapse

Constructor Details

#initialize(plan, results) ⇒ VerificationFailed

Returns a new instance of VerificationFailed.



6
7
8
9
# File 'lib/suture/error/verification_failed.rb', line 6

def initialize(plan, results)
  @plan = plan
  @results = results
end

Instance Method Details

#messageObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/suture/error/verification_failed.rb', line 11

def message
  [
    intro,
    describe_failures(@results.failed, @plan),
    configuration(@plan),
    summarize(@results),
    progress(@plan, @results)
  ].compact.join("\n").tap do
  end
end