Skip to content

Fix Rails/AssertNot to allow it to have message #5894

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

Merged
merged 2 commits into from
May 17, 2018

Conversation

koic
Copy link
Member

@koic koic commented May 17, 2018

Follow up of rails/rails@1dc17e7

This PR will make it aware about the case where failure message is used in assert_not method.


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 rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

@koic koic force-pushed the assert_not_awawre_failure_message branch from 38cd55a to 8314c98 Compare May 17, 2018 04:05
CHANGELOG.md Outdated
@@ -2,6 +2,10 @@

## master (unreleased)

### Bug fixes

* [#5894](https://github.com/bbatsov/rubocop/pull/5894): Fix `CustomCops/AssertNot` to allow it to have failure message. ([@koic][])
Copy link
Collaborator

Choose a reason for hiding this comment

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

This meant to be Rails/AssertNot? 🙂

Copy link
Member Author

Choose a reason for hiding this comment

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

It is as you have pointed out. Thanks always!

Follow up of rails/rails@1dc17e7

This PR will make it aware about the case where failure message is
used in `assert_not` method.
@koic koic force-pushed the assert_not_awawre_failure_message branch from 8314c98 to a3bdf80 Compare May 17, 2018 07:41
@koic koic changed the title Fix CustomCops/AssertNot to allow it to have message Fix Rails/AssertNot to allow it to have message May 17, 2018
@bbatsov bbatsov merged commit b097992 into rubocop:master May 17, 2018
@koic koic deleted the assert_not_awawre_failure_message branch May 17, 2018 10:09
bbatsov pushed a commit that referenced this pull request Jun 4, 2018
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