class Spectator::SourceExampleFilter

Overview

Filter that matches examples in a given file and line.

Defined in:

spectator/source_example_filter.cr

Constructors

Instance Method Summary

Instance methods inherited from class Spectator::ExampleFilter

includes?(example : Example) : Bool includes?

Instance methods inherited from class Object

should(matcher) should, should_eventually(matcher) should_eventually, should_never(matcher) should_never, should_not(matcher) should_not

Constructor Detail

def self.new(source : Source) #

Creates the filter. The source indicates which file and line the example must be on.


[View source]

Instance Method Detail

def includes?(example) : Bool #

Checks whether the example satisfies the filter.


[View source]