rubocop/rubocop-rspec (rubocop-rspec)
### [`v3.0.1`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#301-2024-06-11)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v3.0.0...v3.0.1)
- Bump RuboCop requirement to +1.61. (\[[@ydah](https://togithub.com/ydah)])
### [`v3.0.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#300-2024-06-11)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.31.0...v3.0.0)
- Remove extracted cops in `Capybara`, `FactoryBot` and `Rails` departments. (\[[@ydah](https://togithub.com/ydah)])
- Remove `RuboCop::RSpec::Language::NodePattern`. (\[[@ydah](https://togithub.com/ydah)])
- Remove `RSpec/FilePath` cop. (\[[@ydah](https://togithub.com/ydah)])
- Remove `RSpec/Capybara/FeatureMethods` cop. If you are using this cop, change it to use `RSpec/Dialect`. (\[[@ydah](https://togithub.com/ydah)])
- Add new `RSpec/MissingExpectationTargetMethod` cop. (\[[@krororo](https://togithub.com/krororo)])
- Fix an error for `RSpec/ScatteredSetup` when one of the hooks is an empty block. (\[[@earlopain](https://togithub.com/earlopain)])
These previously pending cops are now enabled by default: `RSpec/BeEmpty`, `RSpec/BeEq`, `RSpec/BeNil`, `RSpec/ChangeByZero`, `RSpec/ClassCheck`, `RSpec/ContainExactly`, `RSpec/DuplicatedMetadata`, `RSpec/EmptyMetadata`, `RSpec/EmptyOutput`, `RSpec/Eq`, `RSpec/ExcessiveDocstringSpacing`, `RSpec/ExpectInLet`, `RSpec/IdenticalEqualityAssertion`, `RSpec/IndexedLet`, `RSpec/IsExpectedSpecify`, `RSpec/MatchArray`, `RSpec/MetadataStyle`, `RSpec/NoExpectationExample`, `RSpec/PendingWithoutReason`, `RSpec/ReceiveMessages`, `RSpec/RedundantAround`, `RSpec/RedundantPredicateMatcher`, `RSpec/RemoveConst`, `RSpec/RepeatedSubjectCall`, `RSpec/SkipBlockInsideExample`, `RSpec/SortMetadata`, `RSpec/SpecFilePathFormat`, `RSpec/SpecFilePathSuffix`, `RSpec/SubjectDeclaration`, `RSpec/UndescriptiveLiteralsDescription`, and `RSpec/VerifiedDoubleReference`.
Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version\_3.html
### [`v2.31.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2310-2024-06-07)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.30.0...v2.31.0)
- Support `AutoCorrect: contextual` option for LSP. (\[[@ydah](https://togithub.com/ydah)])
### [`v2.30.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2300-2024-06-03)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.29.2...v2.30.0)
- Add new `RSpec/ExpectInLet` cop. (\[[@yasu551](https://togithub.com/yasu551)])
### [`v2.29.2`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2292-2024-05-02)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.29.1...v2.29.2)
- Fix beginless and endless range bug for RepeatedIncludeExample cop. (\[[@hasghari](https://togithub.com/hasghari)])
- Fix a false positive for `RSpec/RepeatedSubjectCall` when subject is used as argument to function call. (\[[@K-S-A](https://togithub.com/K-S-A)])
### [`v2.29.1`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2291-2024-04-05)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.29.0...v2.29.1)
- Fix an error in the default configuration. (\[[@ydah](https://togithub.com/ydah)])
### [`v2.29.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2290-2024-04-04)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.28.0...v2.29.0)
- Fix an autocorrect error for `RSpec/ExpectActual`. (\[[@bquorning](https://togithub.com/bquorning)])
- Add new `RSpec/UndescriptiveLiteralsDescription` cop. (\[[@ydah](https://togithub.com/ydah)])
- Add new `RSpec/EmptyOutput` cop. (\[[@bquorning](https://togithub.com/bquorning)])
### [`v2.28.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2280-2024-03-30)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.27.1...v2.28.0)
- Extract RSpec Rails cops to a separate repository, [`rubocop-rspec_rails`](https://togithub.com/rubocop/rubocop-rspec_rails). The `rubocop-rspec_rails` repository is a dependency of `rubocop-rspec` and the cops related to rspec-rails are aliased (`RSpec/Rails/Foo` == `RSpecRails/Foo`) until v3.0 is released, so the change will be invisible to users until then. (\[[@ydah](https://togithub.com/ydah)])
### [`v2.27.1`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2271-2024-03-03)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.27.0...v2.27.1)
- Fix a false positive for `RSpec/RepeatedSubjectCall` when `subject.method_call`. (\[[@ydah](https://togithub.com/ydah)])
- Add configuration option `OnlyStaticConstants` to `RSpec/DescribedClass`. (\[[@ydah](https://togithub.com/ydah)])
### [`v2.27.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2270-2024-03-01)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.26.1...v2.27.0)
- Add new `RSpec/IsExpectedSpecify` cop. (\[[@ydah](https://togithub.com/ydah)])
- Add new `RSpec/RepeatedSubjectCall` cop. (\[[@drcapulet](https://togithub.com/drcapulet)])
- Add support for `assert_true`, `assert_false`, `assert_not_equal`, `assert_not_nil`, `*_empty`, `*_predicate`, `*_kind_of`, `*_in_delta`, `*_match`, `*_instance_of` and `*_includes` assertions in `RSpec/Rails/MinitestAssertions`. (\[[@ydah](https://togithub.com/ydah)], \[[@G-Rath](https://togithub.com/G-Rath)])
- Support asserts with messages in `Rspec/BeEmpty`. (\[[@G-Rath](https://togithub.com/G-Rath)])
- Fix a false positive for `RSpec/ExpectActual` when used with rspec-rails routing matchers. (\[[@naveg](https://togithub.com/naveg)])
- Add configuration option `ResponseMethods` to `RSpec/Rails/HaveHttpStatus`. (\[[@ydah](https://togithub.com/ydah)])
- Fix a false negative for `RSpec/DescribedClass` when class with constant. (\[[@ydah](https://togithub.com/ydah)])
- Fix a false positive for `RSpec/ExampleWithoutDescription` when `specify` with multi-line block and missing description. (\[[@ydah](https://togithub.com/ydah)])
- Fix an incorrect autocorrect for `RSpec/ChangeByZero` when compound expectations with line break before `.by(0)`. (\[[@ydah](https://togithub.com/ydah)])
### [`v2.26.1`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2261-2024-01-05)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.26.0...v2.26.1)
- Fix an error for `RSpec/SharedExamples` when using examples without argument. (\[[@ydah](https://togithub.com/ydah)])
### [`v2.26.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2260-2024-01-04)
[Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.25.0...v2.26.0)
- Add new `RSpec/RedundantPredicateMatcher` cop. (\[[@ydah](https://togithub.com/ydah)])
- Add new `RSpec/RemoveConst` cop. (\[[@swelther](https://togithub.com/swelther)])
- Add support for correcting "it will" (future tense) for `RSpec/ExampleWording`. (\[[@jdufresne](https://togithub.com/jdufresne)])
- Add support for `symbol` style for `RSpec/SharedExamples`. (\[[@jessieay](https://togithub.com/jessieay)])
- Ensure `PendingWithoutReason` can detect violations inside shared groups. (\[[@robinaugh](https://togithub.com/robinaugh)])
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
'2.25.0'
->'3.0.1'
Release Notes
rubocop/rubocop-rspec (rubocop-rspec)
### [`v3.0.1`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#301-2024-06-11) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v3.0.0...v3.0.1) - Bump RuboCop requirement to +1.61. (\[[@ydah](https://togithub.com/ydah)]) ### [`v3.0.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#300-2024-06-11) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.31.0...v3.0.0) - Remove extracted cops in `Capybara`, `FactoryBot` and `Rails` departments. (\[[@ydah](https://togithub.com/ydah)]) - Remove `RuboCop::RSpec::Language::NodePattern`. (\[[@ydah](https://togithub.com/ydah)]) - Remove `RSpec/FilePath` cop. (\[[@ydah](https://togithub.com/ydah)]) - Remove `RSpec/Capybara/FeatureMethods` cop. If you are using this cop, change it to use `RSpec/Dialect`. (\[[@ydah](https://togithub.com/ydah)]) - Add new `RSpec/MissingExpectationTargetMethod` cop. (\[[@krororo](https://togithub.com/krororo)]) - Fix an error for `RSpec/ScatteredSetup` when one of the hooks is an empty block. (\[[@earlopain](https://togithub.com/earlopain)]) These previously pending cops are now enabled by default: `RSpec/BeEmpty`, `RSpec/BeEq`, `RSpec/BeNil`, `RSpec/ChangeByZero`, `RSpec/ClassCheck`, `RSpec/ContainExactly`, `RSpec/DuplicatedMetadata`, `RSpec/EmptyMetadata`, `RSpec/EmptyOutput`, `RSpec/Eq`, `RSpec/ExcessiveDocstringSpacing`, `RSpec/ExpectInLet`, `RSpec/IdenticalEqualityAssertion`, `RSpec/IndexedLet`, `RSpec/IsExpectedSpecify`, `RSpec/MatchArray`, `RSpec/MetadataStyle`, `RSpec/NoExpectationExample`, `RSpec/PendingWithoutReason`, `RSpec/ReceiveMessages`, `RSpec/RedundantAround`, `RSpec/RedundantPredicateMatcher`, `RSpec/RemoveConst`, `RSpec/RepeatedSubjectCall`, `RSpec/SkipBlockInsideExample`, `RSpec/SortMetadata`, `RSpec/SpecFilePathFormat`, `RSpec/SpecFilePathSuffix`, `RSpec/SubjectDeclaration`, `RSpec/UndescriptiveLiteralsDescription`, and `RSpec/VerifiedDoubleReference`. Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version\_3.html ### [`v2.31.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2310-2024-06-07) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.30.0...v2.31.0) - Support `AutoCorrect: contextual` option for LSP. (\[[@ydah](https://togithub.com/ydah)]) ### [`v2.30.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2300-2024-06-03) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.29.2...v2.30.0) - Add new `RSpec/ExpectInLet` cop. (\[[@yasu551](https://togithub.com/yasu551)]) ### [`v2.29.2`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2292-2024-05-02) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.29.1...v2.29.2) - Fix beginless and endless range bug for RepeatedIncludeExample cop. (\[[@hasghari](https://togithub.com/hasghari)]) - Fix a false positive for `RSpec/RepeatedSubjectCall` when subject is used as argument to function call. (\[[@K-S-A](https://togithub.com/K-S-A)]) ### [`v2.29.1`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2291-2024-04-05) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.29.0...v2.29.1) - Fix an error in the default configuration. (\[[@ydah](https://togithub.com/ydah)]) ### [`v2.29.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2290-2024-04-04) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.28.0...v2.29.0) - Fix an autocorrect error for `RSpec/ExpectActual`. (\[[@bquorning](https://togithub.com/bquorning)]) - Add new `RSpec/UndescriptiveLiteralsDescription` cop. (\[[@ydah](https://togithub.com/ydah)]) - Add new `RSpec/EmptyOutput` cop. (\[[@bquorning](https://togithub.com/bquorning)]) ### [`v2.28.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2280-2024-03-30) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.27.1...v2.28.0) - Extract RSpec Rails cops to a separate repository, [`rubocop-rspec_rails`](https://togithub.com/rubocop/rubocop-rspec_rails). The `rubocop-rspec_rails` repository is a dependency of `rubocop-rspec` and the cops related to rspec-rails are aliased (`RSpec/Rails/Foo` == `RSpecRails/Foo`) until v3.0 is released, so the change will be invisible to users until then. (\[[@ydah](https://togithub.com/ydah)]) ### [`v2.27.1`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2271-2024-03-03) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.27.0...v2.27.1) - Fix a false positive for `RSpec/RepeatedSubjectCall` when `subject.method_call`. (\[[@ydah](https://togithub.com/ydah)]) - Add configuration option `OnlyStaticConstants` to `RSpec/DescribedClass`. (\[[@ydah](https://togithub.com/ydah)]) ### [`v2.27.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2270-2024-03-01) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.26.1...v2.27.0) - Add new `RSpec/IsExpectedSpecify` cop. (\[[@ydah](https://togithub.com/ydah)]) - Add new `RSpec/RepeatedSubjectCall` cop. (\[[@drcapulet](https://togithub.com/drcapulet)]) - Add support for `assert_true`, `assert_false`, `assert_not_equal`, `assert_not_nil`, `*_empty`, `*_predicate`, `*_kind_of`, `*_in_delta`, `*_match`, `*_instance_of` and `*_includes` assertions in `RSpec/Rails/MinitestAssertions`. (\[[@ydah](https://togithub.com/ydah)], \[[@G-Rath](https://togithub.com/G-Rath)]) - Support asserts with messages in `Rspec/BeEmpty`. (\[[@G-Rath](https://togithub.com/G-Rath)]) - Fix a false positive for `RSpec/ExpectActual` when used with rspec-rails routing matchers. (\[[@naveg](https://togithub.com/naveg)]) - Add configuration option `ResponseMethods` to `RSpec/Rails/HaveHttpStatus`. (\[[@ydah](https://togithub.com/ydah)]) - Fix a false negative for `RSpec/DescribedClass` when class with constant. (\[[@ydah](https://togithub.com/ydah)]) - Fix a false positive for `RSpec/ExampleWithoutDescription` when `specify` with multi-line block and missing description. (\[[@ydah](https://togithub.com/ydah)]) - Fix an incorrect autocorrect for `RSpec/ChangeByZero` when compound expectations with line break before `.by(0)`. (\[[@ydah](https://togithub.com/ydah)]) ### [`v2.26.1`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2261-2024-01-05) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.26.0...v2.26.1) - Fix an error for `RSpec/SharedExamples` when using examples without argument. (\[[@ydah](https://togithub.com/ydah)]) ### [`v2.26.0`](https://togithub.com/rubocop/rubocop-rspec/blob/HEAD/CHANGELOG.md#2260-2024-01-04) [Compare Source](https://togithub.com/rubocop/rubocop-rspec/compare/v2.25.0...v2.26.0) - Add new `RSpec/RedundantPredicateMatcher` cop. (\[[@ydah](https://togithub.com/ydah)]) - Add new `RSpec/RemoveConst` cop. (\[[@swelther](https://togithub.com/swelther)]) - Add support for correcting "it will" (future tense) for `RSpec/ExampleWording`. (\[[@jdufresne](https://togithub.com/jdufresne)]) - Add support for `symbol` style for `RSpec/SharedExamples`. (\[[@jessieay](https://togithub.com/jessieay)]) - Ensure `PendingWithoutReason` can detect violations inside shared groups. (\[[@robinaugh](https://togithub.com/robinaugh)])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.