class Spectator::ExamplePending
- Spectator::ExamplePending
- Exception
- Reference
- Object
Overview
Exception that indicates an example is pending and should be skipped. When raised within a test, the test should abort.
Defined in:
spectator/example_pending.crConstructors
-
.new(location : Location | Nil = nil, message : String | Nil = nil, cause : Exception | Nil = nil)
Creates the exception.
Instance Method Summary
-
#location : Location | Nil
Location of where the example was aborted.
Instance methods inherited from class Object
should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall Ushould(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_not
Constructor Detail
def self.new(location : Location | Nil = nil, message : String | Nil = nil, cause : Exception | Nil = nil)
#
Creates the exception. Specify location to where the example was aborted.