class Spectator::NameExampleFilter

Overview

Filter that matches examples based on their name.

Defined in:

spectator/name_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 : Spectator::Matchers::Matcher) should, should_not(matcher : Spectator::Matchers::Matcher) should_not

Constructor Detail

def self.new(name : String) #

Creates the example filter.


[View source]

Instance Method Detail

def includes?(example) : Bool #

Checks whether the example satisfies the filter.


[View source]