Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to inspect all describable matchers #219

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

mcmire
Copy link
Owner

@mcmire mcmire commented Feb 10, 2024

In a previous commit, a new inspection tree builder was added which was designed to handle built-in RSpec matchers as well as matchers created via the matcher DSL, by reusing the description of the matcher as the inspection text. However, this inspector did not cover custom matchers defined from scratch rather than via the DSL. This commit corrects this by making use of the is_a_describable_matcher? method from RSpec::Matchers.

In a previous commit, a new inspection tree builder was added which
was designed to handle built-in RSpec matchers as well as matchers
created via the matcher DSL, by reusing the `description` of the matcher
as the inspection text. However, this inspector did not cover custom
matchers defined from scratch rather than via the DSL. This commit
corrects this by making use of the `is_a_describable_matcher?` method
from RSpec::Matchers.
@mcmire mcmire merged commit 773da4a into main Feb 10, 2024
40 checks passed
@mcmire mcmire deleted the handle-describable-matcher branch February 10, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant