mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Showing all expectations in default output works
JSON output still crashes. Is there are bug in the JSON builder? Invalid memory access (signal 11) at address 0x7fe500000300 [0x55924f801836] *CallStack::print_backtrace:Int32 +118 [0x55924f7f21f0] __crystal_sigfault_handler +192 Program exited because of a segmentation fault (11)
This commit is contained in:
parent
f336b1261b
commit
728477914f
1 changed files with 6 additions and 2 deletions
|
@ -52,8 +52,12 @@ module Spectator::Formatting
|
|||
|
||||
# Produces a list of unsatisfied expectations and their values.
|
||||
private def unsatisfied_expectations(indent)
|
||||
@result.expectations.each_unsatisfied do |expectation|
|
||||
indent.line(Color.failure(LabeledText.new("Failure", expectation.actual_message)))
|
||||
@result.expectations.each do |expectation|
|
||||
if expectation.satisfied?
|
||||
indent.line(Color.success(LabeledText.new("Success", expectation.actual_message)))
|
||||
else
|
||||
indent.line(Color.failure(LabeledText.new("Failure", expectation.actual_message)))
|
||||
end
|
||||
indent.line
|
||||
indent.increase do
|
||||
matcher_values(indent, expectation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue