Skip to content

Comments

Fix false positive in RSpec/Pending#2060

Merged
bquorning merged 1 commit intomasterfrom
fix-false-positive-in-rspec-pending
Mar 11, 2025
Merged

Fix false positive in RSpec/Pending#2060
bquorning merged 1 commit intomasterfrom
fix-false-positive-in-rspec-pending

Conversation

@bquorning
Copy link
Collaborator

Let #skippable_example? only return true if at least one argument is being passed to the it call.

Fixes #2053


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

Let `#skippable_example?` only return true if at least one argument is
being passed to the `it` call.
@bquorning bquorning marked this pull request as ready for review March 10, 2025 21:58
@bquorning bquorning requested a review from a team as a code owner March 10, 2025 21:58
@bquorning bquorning merged commit 39a9d89 into master Mar 11, 2025
27 checks passed
@bquorning bquorning deleted the fix-false-positive-in-rspec-pending branch March 11, 2025 06:26
@maxjacobson
Copy link
Contributor

🔥 thanks!

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 positive for RSpec/Pending cop when using it as a default block parameter

3 participants