class Spectator::Spec
- Spectator::Spec
- Reference
- Object
Overview
Contains examples to be tested and configuration for running them.
Defined in:
spectator/spec.crConstructors
- 
        .new(root : ExampleGroup, config : Config)
        
          Creates the spec. 
Instance Method Summary
- 
        #run : Bool
        
          Runs all selected examples and returns the results. 
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
Creates the spec. The root is the top-most example group. All examples in this group and groups nested under are candidates for execution. The config provides settings controlling how tests will be executed.
Instance Method Detail
        
        def run : Bool
        #
      
      
        Runs all selected examples and returns the results. True will be returned if the spec ran successfully, or false if there was at least one failure.