-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Custom Matcher Used via alias_matcher Conflicts With ActiveSupport's Object#with
#1437
Comments
Can you try |
@JonRowe can't install it (with relative ease). Get various gem 'rspec-expectations', :github => "rspec/rspec-expectations", :branch => "main" Gives me:
Gives me similar error |
|
Thanks @JonRowe, looks to be working under |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
Rails 7.1 added
Object#with
which can conflict with custom matchers that define a#with
method (chain :with
) when used via analias_matcher
Your environment
Steps to reproduce
Expected behavior
Neither assertion should raise an
ArgumentError
Actual behavior
The call to the aliased matcher (
bar
)'swith
results in an argument error as the#with
that is called is ActiveSupport'sObject#with
no the custom matchersThe text was updated successfully, but these errors were encountered: