class Spectator::ExpectationFailed
- Spectator::ExpectationFailed
- Spectator::ExampleFailed
- Exception
- Reference
- Object
Overview
Exception that indicates an expectation from a test failed. When raised within a test, the test should abort.
Defined in:
spectator/expectation_failed.crConstructors
- 
        .new(expectation : Expectation, message : String | Nil = nil, cause : Exception | Nil = nil)
        
          Creates the exception. 
Instance Method Summary
- 
        #expectation : Expectation
        
          Expectation that failed. 
Instance methods inherited from class Spectator::ExampleFailed
  
  
    
      location : Location
    location, 
    
  
    
      location? : Location | Nil
    location?
    
  
    
  Constructor methods inherited from class Spectator::ExampleFailed
  
  
    
      new(location : Location | Nil, message : String | Nil = nil, cause : Exception | Nil = nil)
    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
    
  
    
    
  
Constructor Detail
        
        def self.new(expectation : Expectation, message : String | Nil = nil, cause : Exception | Nil = nil)
        #
      
      
        Creates the exception.