Skip to content

Fix false positive in RSpec/LetSetup cop when let! variables are used in blocks declared in an outer context#2138

Open
ydah wants to merge 1 commit into
masterfrom
2136
Open

Fix false positive in RSpec/LetSetup cop when let! variables are used in blocks declared in an outer context#2138
ydah wants to merge 1 commit into
masterfrom
2136

Conversation

@ydah
Copy link
Copy Markdown
Member

@ydah ydah commented Nov 24, 2025

Fixes: #2136


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 November 24, 2025 05:46
…used in blocks declared in an outer context
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.

RSpec/LetSetup false positive when used only on a block declared on an outer context

1 participant