class Spectator::PassResult

Overview

Outcome that indicates running an example was successful.

Defined in:

spectator/pass_result.cr

Instance Method Summary

Instance methods inherited from class Spectator::Result

accept(visitor) accept, elapsed : Time::Span elapsed, expectations : Enumerable(Expectation) expectations, fail? : Bool fail?, pass? : Bool pass?, pending? : Bool pending?, to_json(json : JSON::Builder) to_json

Constructor methods inherited from class Spectator::Result

new(elapsed, expectations = [] of Expectation) new

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Instance Method Detail

def accept(visitor) #

Calls the pass method on visitor.


[View source]
def accept(visitor, &) #

Calls the pass method on visitor.


[View source]
def fail? : Bool #

Indicates whether the example failed.


[View source]
def pass? : Bool #

Indicates whether the example passed.


[View source]
def to_json(json : JSON::Builder) #

Creates a JSON object from the result information.


[View source]
def to_s(io) #

One-word description of the result.


[View source]