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 Minitest/TestCaseName cop #89

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

fatkodima
Copy link
Contributor

@fatkodima fatkodima commented Jul 2, 2020

This cop enforces that public test case method names start with test_ prefix.

Missed test_ prefix is almost always an unintentional mistake - as you can see from 2 corrected tests in this PR - https://github.com/rubocop-hq/rubocop-minitest/pull/89/files#diff-50588427db1de725ce02fc0d20cee56aR88 and https://github.com/rubocop-hq/rubocop-minitest/pull/89/files#diff-f64b784295c232ad3b46ae3d9a8808acR88.

@fatkodima fatkodima force-pushed the test-case-name-cop branch from 9681c28 to 4020a70 Compare July 2, 2020 17:40
@fatkodima fatkodima force-pushed the test-case-name-cop branch from 4020a70 to f97dc7c Compare July 8, 2020 14:07
@fatkodima
Copy link
Contributor Author

Updated.

@koic koic merged commit 511b101 into rubocop:master Jul 9, 2020
@koic
Copy link
Member

koic commented Jul 9, 2020

Thanks!

@fatkodima fatkodima deleted the test-case-name-cop branch January 16, 2023 13:07
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