Skip to content

Conversation

ydah
Copy link
Member

@ydah ydah commented Oct 2, 2025

Fixes: #2021


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

@ydah ydah requested a review from a team as a code owner October 2, 2025 15:16
@pirj
Copy link
Member

pirj commented Oct 4, 2025

I couldn’t find at a glance, why did we implement it in a way that it was skipping pending and skip?

@ydah
Copy link
Member Author

ydah commented Oct 5, 2025

@pirj I think they were more guarded than necessary to prevent false positives below. No other discussion of skip was found in the PR when the cop was created.

    context 'rejected' do
      skip
    end

    context 'processed' do
      skip
    end

refs: #860 (review)

@ydah ydah force-pushed the 2021 branch 2 times, most recently from 01f47bd to 489717d Compare October 6, 2025 11:08
RUBY
end

it 'does not register offense for example group with skip' do
Copy link
Member

Choose a reason for hiding this comment

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

This description is not exactly fair, is it?
We do not register an offence, but because context descriptions are different. Wouldn’t this pass before the fix, too?

RUBY
end

it 'does not register offense for example group with pending' do
Copy link
Member

Choose a reason for hiding this comment

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

This one as well

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/RepeatedExampleGroupDescription
2 participants