Skip to content

Bump rubocop-rspec from 3.6.0 to 3.11.0 - #526

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/rubocop-rspec-3.11.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/rubocop-rspec-3.11.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps rubocop-rspec from 3.6.0 to 3.11.0.

Release notes

Sourced from rubocop-rspec's releases.

RuboCop RSpec v3.11.0

  • Add new cop RSpec/EmptyLineAfterSharedInclusion. (@​sucicfilip)
  • Fix an incorrect autocorrect for RSpec/MatchWithSimpleRegex when the regex contains a backslash, which produced invalid or semantically different code. (@​ihamzatarar)
  • Fix an incorrect autocorrect for RSpec/ScatteredLet that moved a let! above a hook, changing the order the setup ran in. (@​andrewfader)
  • Fix an incorrect autocorrect for RSpec/Output when the output call is the body of a modifier condition or loop. (@​Starlexxx)
  • Fix an error for RSpec/ImplicitExpect when the runner is separated from is_expected by whitespace. (@​viralpraxis)
  • Fix false positives for RSpec/InstanceVariable when an instance variable is used inside a class_eval or module_eval block. (@​corsonknowles)
  • Fix RSpec/LeadingSubject to not move a subject above another subject, avoiding an autocorrect clash with RSpec/MultipleSubjects that could remove a subject used in tests. (@​pcbeingused333)
  • Fix false positives for RSpec/Pending when using SimpleCov 1.x skip filters. (@​gee-forr)
  • Fix false positives for RSpec/SpecFilePathFormat when matching spec partials. (@​ydah)
  • Fix incorrect autocorrection for RSpec/DescribedClass when using nested example groups with EnforcedStyle: explicit. (@​ydah)
  • Fix RSpec/MatchWithSimpleRegex to ignore match outside examples. (@​ydah)
  • Fix incorrect autocorrection for RSpec/ExampleWording with percent literal and escaped example descriptions. (@​ydah)
  • Fix RSpec/SpecFilePathFormat raising when EnforcedInflector: active_support and RuboCop is invoked from outside the project root. (@​corsonknowles)
  • Fix RSpec/LeadingSubject to not crash on itblock/numblock example groups with Ruby 3.4 and Prism. (@​pcbeingused333)
  • Fix RSpec/MatchWithSimpleRegex to ignore match nested inside include matchers. (@​ydah)
  • Fix an incorrect autocorrect for RSpec/SharedExamples when the shared example name cannot be written as a plain symbol or a single-quoted string. (@​viralpraxis)
  • Fix an incorrect autocorrect for RSpec/PredicateMatcher with EnforcedStyle: explicit when Style/TrailingCommaInArguments corrects the same expectation. (@​viralpraxis)
  • Fix RSpec/Dialect to ignore configured method names on non-RSpec receivers. (@​iamzayn19)
  • Mark RSpec/MatchWithSimpleRegex as unsafe. (@​bquorning)
  • Point the style guide link of RSpec/ClassCheck at the Ruby style guide, since the RSpec style guide has no guideline for it. (@​bbatsov)
  • Speed up loading rubocop-rspec by lazily loading only the cops needed for a run. This requires RuboCop 1.89.0+. (@​koic)
  • Bump RuboCop requirement to 1.92+. (@​bquorning)

RuboCop RSpec v3.10.2

  • Fix false positives for RSpec/SpecFilePathFormat when CustomTransform maps a namespace to an empty string. (@​sakuro)
  • Fix RSpec/MatchWithSimpleRegex to ignore regular expressions with options. (@​bquorning)

RuboCop RSpec v3.10.1

  • Add Strict option to RSpec/SharedContext to flag shared_context whenever it contains examples, even alongside setup code. ([@​Darhazer])
  • Add NegatedMatcher configuration option RSpec/ExpectChange. ([@​Darhazer])
  • Fix RSpec/MatchWithSimpleRegex to ignore regular expressions with interpolations. (@​bquorning)

... (truncated)

Changelog

Sourced from rubocop-rspec's changelog.

3.11.0 (2026-11-27)

  • Add new cop RSpec/EmptyLineAfterSharedInclusion. ([@​sucicfilip])
  • Fix an incorrect autocorrect for RSpec/MatchWithSimpleRegex when the regex contains a backslash, which produced invalid or semantically different code. ([@​ihamzatarar])
  • Fix an incorrect autocorrect for RSpec/ScatteredLet that moved a let! above a hook, changing the order the setup ran in. ([@​andrewfader])
  • Fix an incorrect autocorrect for RSpec/Output when the output call is the body of a modifier condition or loop. ([@​Starlexxx])
  • Fix an error for RSpec/ImplicitExpect when the runner is separated from is_expected by whitespace. ([@​viralpraxis])
  • Fix false positives for RSpec/InstanceVariable when an instance variable is used inside a class_eval or module_eval block. ([@​corsonknowles])
  • Fix RSpec/LeadingSubject to not move a subject above another subject, avoiding an autocorrect clash with RSpec/MultipleSubjects that could remove a subject used in tests. ([@​pcbeingused333])
  • Fix false positives for RSpec/Pending when using SimpleCov 1.x skip filters. ([@​gee-forr])
  • Fix false positives for RSpec/SpecFilePathFormat when matching spec partials. ([@​ydah])
  • Fix incorrect autocorrection for RSpec/DescribedClass when using nested example groups with EnforcedStyle: explicit. ([@​ydah])
  • Fix RSpec/MatchWithSimpleRegex to ignore match outside examples. ([@​ydah])
  • Fix incorrect autocorrection for RSpec/ExampleWording with percent literal and escaped example descriptions. ([@​ydah])
  • Fix RSpec/SpecFilePathFormat raising when EnforcedInflector: active_support and RuboCop is invoked from outside the project root. ([@​corsonknowles])
  • Fix RSpec/LeadingSubject to not crash on itblock/numblock example groups with Ruby 3.4 and Prism. ([@​pcbeingused333])
  • Fix RSpec/MatchWithSimpleRegex to ignore match nested inside include matchers. ([@​ydah])
  • Fix an incorrect autocorrect for RSpec/SharedExamples when the shared example name cannot be written as a plain symbol or a single-quoted string. ([@​viralpraxis])
  • Fix an incorrect autocorrect for RSpec/PredicateMatcher with EnforcedStyle: explicit when Style/TrailingCommaInArguments corrects the same expectation. ([@​viralpraxis])
  • Fix RSpec/Dialect to ignore configured method names on non-RSpec receivers. ([@​iamzayn19])
  • Mark RSpec/MatchWithSimpleRegex as unsafe. ([@​bquorning])
  • Point the style guide link of RSpec/ClassCheck at the Ruby style guide, since the RSpec style guide has no guideline for it. ([@​bbatsov])
  • Speed up loading rubocop-rspec by lazily loading only the cops needed for a run. This requires RuboCop 1.89.0+. ([@​koic])
  • Bump RuboCop requirement to 1.92+. ([@​bquorning])

3.10.2 (2026-06-06)

  • Fix false positives for RSpec/SpecFilePathFormat when CustomTransform maps a namespace to an empty string. ([@​sakuro])
  • Fix RSpec/MatchWithSimpleRegex to ignore regular expressions with options. ([@​bquorning])

3.10.1 (2026-06-05)

  • Add Strict option to RSpec/SharedContext to flag shared_context whenever it contains examples, even alongside setup code. ([@​Darhazer])
  • Add NegatedMatcher configuration option RSpec/ExpectChange. ([@​Darhazer])
  • Fix RSpec/MatchWithSimpleRegex to ignore regular expressions with interpolations. ([@​bquorning])

3.10.0 (2026-06-05)

  • Add new cop RSpec/MatchWithSimpleRegex to suggest include matcher when match is used with simple string literals without regex-specific features. ([@​bquorning])
  • Add new cop RSpec/DiscardedMatcher to detect matchers in void context (e.g. missing .and between compound matchers). ([@​ydakuka])
  • Add support for itblock nodes. ([@​Darhazer])
  • RSpec/ScatteredLet now preserves the order of lets during auto-correction. ([@​Darhazer])
  • Fix a false negative for RSpec/EmptyLineAfterFinalLet inside shared_examples / include_examples / it_behaves_like blocks. ([@​Darhazer])
  • Fix a false positive for RSpec/ContainExactly when contain_exactly has multiple splat arguments. ([@​ydah])
  • Add autocorrect support for RSpec/SubjectDeclaration. ([@​eugeneius])
  • Fix false negatives for RSpec/SpecFilePathFormat when the expected class path only partially matches a path segment. ([@​ydah])
  • Fix a false negative for RSpec/ExpectActual when the matcher takes no arguments (e.g. expect("foo").to be_present, expect(1).to be). ([@​cvx])

3.9.0 (2026-01-07)

... (truncated)

Commits
  • a098880 Merge pull request #2280 from rubocop/release
  • 43aeb91 Release v3.11.0
  • 750555a Merge pull request #2277 from rubocop/simple-regex-cop-improvements
  • d1d4ee9 Merge pull request #2279 from rubocop/dependabot/github_actions/rubygems/rele...
  • 53a9ab7 Bump rubygems/release-gem from 1.4.1 to 1.4.2
  • ea365f0 Mark RSpec/MatchWithSimpleRegex as unsafe
  • 5cb212c Merge pull request #2278 from rubocop/cleanup-autocorrect-incompatibilities
  • 462c44c Clean up autocorrect incompatibilities
  • f7ec411 Merge pull request #2276 from rubocop/jruby-latest
  • 2506926 Only use latest JRuby
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 3.6.0 to 3.11.0.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop-rspec@v3.6.0...v3.11.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-version: 3.11.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependabot Pull requests that update a dependency file label Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependabot Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant