shard-spectator/src/spectator/failed_result.cr
2018-09-15 13:30:07 -06:00

27 lines
339 B
Crystal

require "./result"
module Spectator
class FailedResult < Result
getter error : Exception
def passed?
false
end
def failed?
true
end
def errored?
false
end
def pending?
false
end
def initialize(example, elapsed, @error)
super(example, elapsed)
end
end
end