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

Fix Violations of and Reenable Rails/AssertNot #52931

Merged
merged 2 commits into from
Jul 21, 2023
Merged

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Jul 20, 2023

This one's pretty straightforward:

Use assert_not instead of assert !.

Fix applied automatically with bundle exec rubocop --autocorrect --only Rails/AssertNot

I did have to add an explicit Include directive to prevent this Cop from warning us about Pegasus tests, for which assert_not is not defined.

Links

This one's pretty straightforward:

> Use `assert_not` instead of `assert !`.

Fix applied automatically with `bundle exec rubocop --autocorrect --only Rails/AssertNot`

- https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsassertnot
- https://www.rubydoc.info/gems/rubocop-rails/RuboCop/Cop/Rails/AssertNot
@Hamms Hamms marked this pull request as ready for review July 20, 2023 23:47
@Hamms Hamms requested review from a team July 20, 2023 23:47
@Hamms Hamms merged commit 2edd3e9 into staging Jul 21, 2023
2 checks passed
@Hamms Hamms deleted the fix-Rails/AssertNot branch July 21, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants