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

Fix matching when DidYouMean is enabled #771

Closed
wants to merge 1 commit into from
Closed

Fix matching when DidYouMean is enabled #771

wants to merge 1 commit into from

Conversation

petergoldstein
Copy link

Because of the changes in Ruby 3.1 to enable DidYouMean for a subset of errors, in a way that is somewhat confusing in specs, rspec-expectations now matches against the original_message, if the Error responds to that method. That avoids having to match the backtrace in these circumstances.

Unfortunately that causes specs like this one - where DidYouMean is being used intentionally - to fail the matcher. This PR updates the spec to avoid use of the matcher.

With this change, specs are now green.

@dorner
Copy link

dorner commented Jan 24, 2022

LGTM - @rafaelfranca

@deivid-rodriguez
Copy link
Contributor

This one can be closed now because a similar fix was introduced by #780.

This pull request was closed.
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.

3 participants