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

Allow higher-order expectations #29

Open
3 tasks
bdsoha opened this issue Dec 8, 2022 · 0 comments
Open
3 tasks

Allow higher-order expectations #29

bdsoha opened this issue Dec 8, 2022 · 0 comments
Labels
✨ enhancement New feature or request ⌛ on-hold Awaiting an action or decision to move forward

Comments

@bdsoha
Copy link
Owner

bdsoha commented Dec 8, 2022

Allow higher-order expectations to assert all values in an iterable item using syntax expect([1,2,3]).each.to_be_numeric(3).

  • Add a chain method for .each to assert each value independently
  • Add a chain method for .all as an alias to .each
  • Add a chain method for .any to assert that at least one value conforms to the expectation
@bdsoha bdsoha mentioned this issue Dec 8, 2022
5 tasks
@bdsoha bdsoha changed the title Add higher-order expectations using expect([1,2,3]).each.to_be_numeric(3). Allow higher-order expectations Dec 8, 2022
@bdsoha bdsoha added ✨ enhancement New feature or request ⌛ on-hold Awaiting an action or decision to move forward labels Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request ⌛ on-hold Awaiting an action or decision to move forward
Projects
None yet
Development

No branches or pull requests

1 participant