class Spectator::ErrorResult
 
  
  Overview
Outcome that indicates running an example generated an error. This occurs when an unexpected exception was raised while running an example. This is different from a "failed" result in that the error was not from a failed assertion.
Defined in:
spectator/error_result.crInstance Method Summary
- 
        #accept(visitor)
        
          
Calls the
errormethod on visitor. - 
        #accept(visitor, &)
        
          
Calls the
errormethod on visitor. - 
        #to_s(io : IO) : Nil
        
          
One-word description of the result.
 
Instance methods inherited from class Spectator::FailResult
  
  
    
      accept(visitor)accept(visitor, &) accept, error : Exception error, fail? : Bool fail?, location : Location location, location? : Location | Nil location?, pass? : Bool pass?, to_json(json : JSON::Builder) to_json, to_s(io : IO) : Nil to_s
Constructor methods inherited from class Spectator::FailResult
  
  
    
      new(elapsed, error : Exception, expectations = [] of Expectation)
    new
    
  
    
  
    
  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 : Time::Span, expectations : Enumerable(Spectator::Expectation) = [] of Expectation)
    new
    
  
    
  
    
    
    
  
    
  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