Update dependency rubocop-rspec to v3 #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot]
.This notice will be removed on 2025-10-07.
This PR contains the following updates:
'~>2.31'
->'~>3.0'
Release Notes
rubocop/rubocop-rspec (rubocop-rspec)
v3.7.0
Compare Source
RSpec/IncludeExamples
asSafeAutoCorrect: false
. ([@yujideveloper])RSpec/LeakyConstantDeclaration
when defining constants in explicit namespaces. ([@naveg])raise_exception
andraise_error
) toRSpec/Dialect
. ([@lovro-bikic])RSpec/DescribedClass
withinData.define
blocks. ([@lovro-bikic])RSpec/IteratedExpectation
for single expectations. ([@lovro-bikic])RSpec/ExcessiveDocstringSpacing
when receivers are not RSpec methods. ([@ydah])v3.6.0
Compare Source
RSpec/Pending
, where it would mark the default blockit
as an offense. ([@bquorning])Style/ContextWording
is configured with a Prefix being interpreted as a boolean, likeon
. ([@sakuro])RSpec/IncludeExamples
cop to enforce usingit_behaves_like
overinclude_examples
. ([@dvandersluis])RSpec/ScatteredSetup
to allowaround
hooks to be scattered. ([@ydah])RSpec/ChangeByZero
cop when without expect block. ([@lee266])RSpec/DescribedClass
whenSkipBlocks
is true and numblocks are used. ([@earlopain])v3.5.0
Compare Source
RSpec/PredicateMatcher
replacerespond_to?
with two arguments with the RSpecrespond_to
matcher. ([@bquorning])RSpec/PredicateMatcher
support foreql
andequal
matchers. ([@bquorning])v3.4.0
Compare Source
RSpec/SortMetadata
cop to limit sorting to trailing metadata arguments. ([@cbliard])RSpec/StringAsInstanceDoubleConstant
withRSpec/VerifiedDoubleReference
configured to only support constant class references. ([@corsonknowles])RSpec/EmptyExampleGroup
cop false positive when a simple conditional is used inside an iterator. ([@lovro-bikic])v3.3.0
Compare Source
top_level_group?
method fromTopLevelGroup
mixin as all of its callers were intentionally removed fromRubocop/RSpec
. ([@corsonknowles])v3.2.0
Compare Source
RSpec/VoidExpect
to only operate inside an example block. ([@corsonknowles])RSpec/ContextWording
cop to always report an offense when bothPrefixes
andAllowedPatterns
are empty. ([@ydah])and
andor
compound matchers toRSpec/ChangeByZero
cop. ([@ydah])v3.1.0
Compare Source
RSpec/StringAsInstanceDoubleConstant
to check for and correct strings used as instance_doubles. ([@corsonknowles])RSpec/UnspecifiedException
when a method is literally namedraise_exception
. ([@aarestad])RSpec/UnspecifiedException
whennot_to raise_error
is used within a block. ([@aarestad], [@G-Rath])v3.0.5
Compare Source
RSpec/MetadataStyle
when non-literal args are used in metadata inEnforceStyle: hash
. ([@cbliard])RSpec/IndexedLet
. ([@earlopain])v3.0.4
Compare Source
UnspecifiedException
when matcher is chained. ([@r7kamura])v3.0.3
Compare Source
RSpec/ExampleWording
. ([@jdufresne])RSpec/MultipleExpectations
,RSpec/MultipleMemoizedHelpers
, andRSpec/NestedGroups
cops. ([@koic])v3.0.2
Compare Source
RSpec/ScatteredSetup
when hook contains heredoc. ([@earlopain])RSpec/PredicateMatcher
when expectation contains custom failure message. ([@earlopain])v3.0.1
Compare Source
v3.0.0
Compare Source
Capybara
,FactoryBot
andRails
departments. ([@ydah])RuboCop::RSpec::Language::NodePattern
. ([@ydah])RSpec/FilePath
cop. ([@ydah])RSpec/Capybara/FeatureMethods
cop. If you are using this cop, change it to useRSpec/Dialect
. ([@ydah])RSpec/MissingExpectationTargetMethod
cop. ([@krororo])RSpec/ScatteredSetup
when one of the hooks is an empty block. ([@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
, andRSpec/VerifiedDoubleReference
.Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html
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 was generated by Mend Renovate. View the repository job log.