Define a pending result as neither passing nor failing

This commit is contained in:
Michael Miller 2021-05-16 12:31:01 -06:00
parent 832ffbf403
commit fb436d2ec4
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -23,6 +23,11 @@ module Spectator
# Indicates whether the example failed.
abstract def fail? : Bool
# Indicates whether the example was skipped.
def pending? : Bool
!pass? && !fail?
end
# Creates a JSON object from the result information.
def to_json(json : ::JSON::Builder, example)
json.object do