class Spectator::ExampleFailed

Overview

Exception that indicates an example failed. When raised within a test, the test should abort.

Direct Known Subclasses

Defined in:

spectator/example_failed.cr

Constructors

Instance Method Summary

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

Constructor Detail

def self.new(location : Location | Nil, message : String | Nil = nil, cause : Exception | Nil = nil) #

Creates the exception.


[View source]

Instance Method Detail

def location : Location #

[View source]
def location? : Location | Nil #

[View source]