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 new AssertMatch and RefuteMatch matchers #49

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

fsateler
Copy link
Contributor

These make it easier to adhere to the following minitest style guides:

https://github.com/rubocop-hq/minitest-style-guide#assert-match
https://github.com/rubocop-hq/minitest-style-guide#refute-match

Replace this text with a summary of the changes in your PR.
The more detailed you are, the better.


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

@@ -2,6 +2,8 @@

## master (unreleased)

* New cops `AssertMatch` and `RefuteMatch` check for use of `assert_match`/`refute_match` instead of `assert(foo.match(bar))`/`refute(foo.match(bar))`
Copy link
Member

Choose a reason for hiding this comment

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

@koic
Copy link
Member

koic commented Feb 5, 2020

I'm going to merge and update this PR.

@koic koic merged commit e836057 into rubocop:master Feb 5, 2020
@fsateler
Copy link
Contributor Author

fsateler commented Feb 5, 2020

Thanks! I was waiting for some free time to fix this but you are faster.

Cheers!

@fsateler fsateler deleted the feature/assert-match branch February 5, 2020 17:03
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.

2 participants