Unable to filter examples with tags
Using config.filter_run_excluding :mytag
when constructing with Spectator.configure
fails due to filter_run_excluding
will only accept Symbol
s, but the TagNodeFilter
that gets delegated to only accepts String
for the tag name.
A quick repro should be:
Spectator configure do |config|
config.filter_run_excluding :mytag
end
In lib/spectator/src/spectator/config/builder.cr:284:53
284 | tags.each { |tag| @rejects << TagNodeFilter.new(tag) }
^--
Error: no overload matches 'Spectator::TagNodeFilter.new' with type Symbol
Overloads are:
- Spectator::TagNodeFilter.new(tag : String, value : String | ::Nil = nil)
Alternatively, I'd be happy to learn that I'm just using this filter wrong