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

Remove kw args warning from has_<n> matcher #1184

Closed
wants to merge 2 commits into from

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented May 12, 2020

@JonRowe JonRowe force-pushed the remove-kw-args-warning-from-has-matcher branch from e70629a to fa5788d Compare May 12, 2020 10:45
@JonRowe
Copy link
Member Author

JonRowe commented May 12, 2020

Build failures is because of nested spec runs for rspec-core not having the right dependency, if the support PR is merged and pin dropped it should be fixed.

@JonRowe JonRowe requested review from benoittgt and pirj May 12, 2020 11:39
@@ -65,7 +65,7 @@ def predicate_exists?
end

def predicate_matches?
@actual.__send__(predicate, *@args, &@block)
RSpec::Support::WithKeywordsWhenNeeded.send_to(@actual, predicate, *@args, &@block)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great to have this. LGTM

Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!
Please don't forget the Gemfile.

@JonRowe JonRowe closed this Jun 1, 2020
@JonRowe JonRowe deleted the remove-kw-args-warning-from-has-matcher branch June 1, 2020 14:57
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.

Ruby 2.7 deprecations in has matchers
3 participants