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 a false negative for RSpec/Pending and false positive for RSpec/NoExpectationExample when using skipped in metadata is multiline string #1541

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

ydah
Copy link
Member

@ydah ydah commented Jan 6, 2023

Fix: #1540


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).

Comment on lines +10 to +12
- Fix a false negative for `RSpec/Pending` when using skipped in metadata is multiline string. ([@ydah])
- Fix a false positive for `RSpec/NoExpectationExample` when using skipped in metadata is multiline string. ([@ydah])
Copy link
Member Author

Choose a reason for hiding this comment

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

[memo] CHANGELOGs are separated for easy reading. Please let us know if it would be better to integrate.

Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Thank you!

spec/rubocop/cop/rspec/pending_spec.rb Outdated Show resolved Hide resolved
…c/NoExpectationExample` when using skipped in metadata is multiline string

Fix: rubocop#1540
@Darhazer Darhazer merged commit e9e08dd into rubocop:master Jan 13, 2023
@ydah ydah deleted the fix/1540 branch January 13, 2023 13:01
ydah added a commit to ydah/rubocop-rspec that referenced this pull request Jan 13, 2023
ydah added a commit to ydah/rubocop-rspec that referenced this pull request Jan 13, 2023
Darhazer added a commit that referenced this pull request Jan 13, 2023
Move #1541 changelog to unreleased position
ydah added a commit to rubocop/rubocop-factory_bot that referenced this pull request Apr 13, 2023
ydah added a commit to rubocop/rubocop-rspec_rails that referenced this pull request Mar 27, 2024
ydah added a commit to rubocop/rubocop-rspec_rails that referenced this pull request Mar 27, 2024
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.

False negative for RSpec/Pending in 2.16.0 when reason is some forms of multiline string
3 participants