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

Implement #negated? in superclass #1792

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

bquorning
Copy link
Collaborator

All current matchers follow the pattern of negative assertions matching assert_not_* and refute_*. If we add a matcher where the negative assertions do not match this pattern, the method can still be overwritten in that subclass.


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Updated documentation.
  • Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

All current matchers follow the pattern of negative assertions matching
`assert_not_*` and `refute_*`. If we add a matcher where the negative
assertions do not match this pattern, the method can still be overwritten
in that subclass.
@bquorning bquorning marked this pull request as ready for review January 30, 2024 11:33
@bquorning bquorning requested a review from a team as a code owner January 30, 2024 11:33
@bquorning
Copy link
Collaborator Author

cc @G-Rath

Copy link
Member

@ydah ydah left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@G-Rath G-Rath left a comment

Choose a reason for hiding this comment

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

Nice!

@bquorning bquorning merged commit 20463bc into master Jan 30, 2024
24 checks passed
@bquorning bquorning deleted the minitest-assertions-negative-in-superclass branch January 30, 2024 17:26
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