Exception: Hypothesis::MultipleExceptionError
Instance Attribute Summary
#all_exceptions
Instance Method Summary
collapse
#initialize
Instance Method Details
#backtrace ⇒ Object
57
58
59
|
# File 'lib/hypothesis/errors.rb', line 57
def backtrace
[]
end
|
#message ⇒ Object
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/hypothesis/errors.rb', line 45
def message
jd = HypothesisJunkDrawer
"Test raised #{all_exceptions.length} distinct errors:\n\n" +
all_exceptions.map do |e|
location = jd.find_first_relevant_line(e.backtrace).sub(/:in.+$/, '')
backtrace = jd.prune_backtrace(e.backtrace)
"#{e.class} at #{location}:\n" \
"#{e.message}\n#{backtrace.map { |s| ' ' + s }
.join("\n")}"
end.join("\n\n")
end
|