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 an_array_matching alias for match_array #1361

Merged
merged 1 commit into from
Mar 3, 2022

Conversation

markaschneider
Copy link
Contributor

This improves readability when used as an argument matcher.

expect(obj).to receive(:msg).with(an_array_matching([1, 2]))

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.

Thank you!

@pirj pirj requested a review from JonRowe March 1, 2022 18:04
@JonRowe JonRowe merged commit 77889b8 into rspec:main Mar 3, 2022
@JonRowe
Copy link
Member

JonRowe commented Mar 3, 2022

Thanks!

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

3 participants