diff --git a/CHANGELOG.md b/CHANGELOG.md index 518adb7..ea86ded 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Fixed +- Fix `Spectator.configure` block calls to `filter_run_excluding` and `filter_run_including`. [#61](https://gitlab.com/arctic-fox/spectator/-/issues/61) + ## [0.10.0] - 2021-09-19 ### Fixed - Fix resolution of types with the same name in nested scopes. [#31](https://github.com/icy-arctic-fox/spectator/issues/31) diff --git a/src/spectator/config/builder.cr b/src/spectator/config/builder.cr index 7866fc6..c7bdfa7 100644 --- a/src/spectator/config/builder.cr +++ b/src/spectator/config/builder.cr @@ -270,8 +270,8 @@ module Spectator # Specifies one or more tags to constrain running examples to. def filter_run_including(*tags : Symbol, **values) - tags.each { |tag| @filters << TagNodeFilter.new(tag) } - values.each { |tag, value| @filters << TagNodeFilter.new(tag, value.to_s) } + tags.each { |tag| @filters << TagNodeFilter.new(tag.to_s) } + values.each { |tag, value| @filters << TagNodeFilter.new(tag.to_s, value.to_s) } end # Adds a filter to prevent examples from running. @@ -281,8 +281,8 @@ module Spectator # Specifies one or more tags to exclude from running examples. def filter_run_excluding(*tags : Symbol, **values) - tags.each { |tag| @rejects << TagNodeFilter.new(tag) } - values.each { |tag, value| @rejects << TagNodeFilter.new(tag, value.to_s) } + tags.each { |tag| @rejects << TagNodeFilter.new(tag.to_s) } + values.each { |tag, value| @rejects << TagNodeFilter.new(tag.to_s, value.to_s) } end # Specifies one or more tags to filter on only if they're present in the spec.